From a16577d9857206089fd8bce6a342b31dbd7fb9b0 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 7 Sep 2013 21:06:22 +0200 Subject: MSN Audio support This is essentially a MS GSM decoder extension that supports more sampling rates and lower bitrates. Signed-off-by: Anton Khirnov --- libavcodec/gsm.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'libavcodec/gsm.h') diff --git a/libavcodec/gsm.h b/libavcodec/gsm.h index c7c3e22bde..238cb7359d 100644 --- a/libavcodec/gsm.h +++ b/libavcodec/gsm.h @@ -22,10 +22,24 @@ #define AVCODEC_GSM_H /* bytes per block */ -#define GSM_BLOCK_SIZE 33 -#define GSM_MS_BLOCK_SIZE 65 +#define GSM_BLOCK_SIZE 33 +#define GSM_MS_BLOCK_SIZE 65 +#define MSN_MIN_BLOCK_SIZE 41 /* samples per block */ #define GSM_FRAME_SIZE 160 +enum GSMModes { + GSM_13000 = 0, + MSN_12400, + MSN_11800, + MSN_11200, + MSN_10600, + MSN_10000, + MSN_9400, + MSN_8800, + MSN_8200, + NUM_GSM_MODES +}; + #endif /* AVCODEC_GSM_H */ -- cgit v1.2.3