speex.h | speex.h | |||
---|---|---|---|---|
skipping to change at line 59 | skipping to change at line 59 | |||
/** Get enhancement state (decoder only) */ | /** Get enhancement state (decoder only) */ | |||
#define SPEEX_GET_ENH 1 | #define SPEEX_GET_ENH 1 | |||
/*Would be SPEEX_SET_FRAME_SIZE, but it's (currently) invalid*/ | /*Would be SPEEX_SET_FRAME_SIZE, but it's (currently) invalid*/ | |||
/** Obtain frame size used by encoder/decoder */ | /** Obtain frame size used by encoder/decoder */ | |||
#define SPEEX_GET_FRAME_SIZE 3 | #define SPEEX_GET_FRAME_SIZE 3 | |||
/** Set quality value */ | /** Set quality value */ | |||
#define SPEEX_SET_QUALITY 4 | #define SPEEX_SET_QUALITY 4 | |||
/** Get current quality setting */ | /** Get current quality setting */ | |||
#define SPEEX_GET_QUALITY 5 | /* #define SPEEX_GET_QUALITY 5 -- Doesn't make much sense, does it? */ | |||
/** Set sub-mode to use */ | /** Set sub-mode to use */ | |||
#define SPEEX_SET_MODE 6 | #define SPEEX_SET_MODE 6 | |||
/** Get current sub-mode in use */ | /** Get current sub-mode in use */ | |||
#define SPEEX_GET_MODE 7 | #define SPEEX_GET_MODE 7 | |||
/** Set low-band sub-mode to use (wideband only)*/ | /** Set low-band sub-mode to use (wideband only)*/ | |||
#define SPEEX_SET_LOW_MODE 8 | #define SPEEX_SET_LOW_MODE 8 | |||
/** Get current low-band mode in use (wideband only)*/ | /** Get current low-band mode in use (wideband only)*/ | |||
#define SPEEX_GET_LOW_MODE 9 | #define SPEEX_GET_LOW_MODE 9 | |||
skipping to change at line 190 | skipping to change at line 190 | |||
/** modeID for the defined narrowband mode */ | /** modeID for the defined narrowband mode */ | |||
#define SPEEX_MODEID_NB 0 | #define SPEEX_MODEID_NB 0 | |||
/** modeID for the defined wideband mode */ | /** modeID for the defined wideband mode */ | |||
#define SPEEX_MODEID_WB 1 | #define SPEEX_MODEID_WB 1 | |||
/** modeID for the defined ultra-wideband mode */ | /** modeID for the defined ultra-wideband mode */ | |||
#define SPEEX_MODEID_UWB 2 | #define SPEEX_MODEID_UWB 2 | |||
#ifdef EPIC_48K | ||||
/** modeID for the Epic 48K mode */ | ||||
#define SPEEX_MODEID_NB_48K 1000 | ||||
#endif | ||||
struct SpeexMode; | struct SpeexMode; | |||
/* Prototypes for mode function pointers */ | /* Prototypes for mode function pointers */ | |||
/** Encoder state initialization function */ | /** Encoder state initialization function */ | |||
typedef void *(*encoder_init_func)(const struct SpeexMode *mode); | typedef void *(*encoder_init_func)(const struct SpeexMode *mode); | |||
/** Encoder state destruction function */ | /** Encoder state destruction function */ | |||
typedef void (*encoder_destroy_func)(void *st); | typedef void (*encoder_destroy_func)(void *st); | |||
skipping to change at line 379 | skipping to change at line 384 | |||
/** Default "ultra-wideband" mode */ | /** Default "ultra-wideband" mode */ | |||
extern const SpeexMode speex_uwb_mode; | extern const SpeexMode speex_uwb_mode; | |||
#ifdef EPIC_48K | #ifdef EPIC_48K | |||
/** 4.8 kbps narrowband mode */ | /** 4.8 kbps narrowband mode */ | |||
extern const SpeexMode speex_nb_48k_mode; | extern const SpeexMode speex_nb_48k_mode; | |||
#endif | #endif | |||
/** List of all modes available */ | /** List of all modes available */ | |||
extern const SpeexMode *speex_mode_list[SPEEX_NB_MODES]; | extern const SpeexMode * const speex_mode_list[SPEEX_NB_MODES]; | |||
/** Obtain one of the modes available */ | ||||
const SpeexMode * const speex_lib_get_mode (int mode); | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 10 lines changed or added | |||