diff options
Diffstat (limited to 'apps/codecs/libspeex/speex.c')
-rw-r--r-- | apps/codecs/libspeex/speex.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/apps/codecs/libspeex/speex.c b/apps/codecs/libspeex/speex.c index 17a987fde0..2a42e274a7 100644 --- a/apps/codecs/libspeex/speex.c +++ b/apps/codecs/libspeex/speex.c | |||
@@ -38,6 +38,7 @@ | |||
38 | 38 | ||
39 | #include "modes.h" | 39 | #include "modes.h" |
40 | #include <math.h> | 40 | #include <math.h> |
41 | #include "os_support.h" | ||
41 | 42 | ||
42 | #ifndef NULL | 43 | #ifndef NULL |
43 | #define NULL 0 | 44 | #define NULL 0 |
@@ -208,29 +209,6 @@ int nb_mode_query(const void *mode, int request, void *ptr) | |||
208 | return 0; | 209 | return 0; |
209 | } | 210 | } |
210 | 211 | ||
211 | int wb_mode_query(const void *mode, int request, void *ptr) | ||
212 | { | ||
213 | const SpeexSBMode *m = (const SpeexSBMode*)mode; | ||
214 | |||
215 | switch (request) | ||
216 | { | ||
217 | case SPEEX_MODE_FRAME_SIZE: | ||
218 | *((int*)ptr)=2*m->frameSize; | ||
219 | break; | ||
220 | case SPEEX_SUBMODE_BITS_PER_FRAME: | ||
221 | if (*((int*)ptr)==0) | ||
222 | *((int*)ptr) = SB_SUBMODE_BITS+1; | ||
223 | else if (m->submodes[*((int*)ptr)]==NULL) | ||
224 | *((int*)ptr) = -1; | ||
225 | else | ||
226 | *((int*)ptr) = m->submodes[*((int*)ptr)]->bits_per_frame; | ||
227 | break; | ||
228 | default: | ||
229 | speex_warning_int("Unknown wb_mode_query request: ", request); | ||
230 | return -1; | ||
231 | } | ||
232 | return 0; | ||
233 | } | ||
234 | 212 | ||
235 | 213 | ||
236 | int speex_lib_ctl(int request, void *ptr) | 214 | int speex_lib_ctl(int request, void *ptr) |