Fixed a couple stupid bugs
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Fri, 8 Nov 2002 05:00:26 +0000 (05:00 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Fri, 8 Nov 2002 05:00:26 +0000 (05:00 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@4097 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/modes.c
libspeex/sb_celp.c

index 805fc6b..77ed227 100644 (file)
@@ -490,7 +490,7 @@ SpeexMode speex_uwb_mode = {
    &sb_uwb_mode,
    wb_mode_query,
    "ultra-wideband (sub-band CELP)",
    &sb_uwb_mode,
    wb_mode_query,
    "ultra-wideband (sub-band CELP)",
-   1,
+   2,
    4,
    &sb_encoder_init,
    &sb_encoder_destroy,
    4,
    &sb_encoder_init,
    &sb_encoder_destroy,
index 27ef0c6..e13aa11 100644 (file)
@@ -1056,6 +1056,12 @@ void sb_decoder_ctl(void *state, int request, void *ptr)
       else
          (*(int*)ptr) += 50*(SB_SUBMODE_BITS+1);
       break;
       else
          (*(int*)ptr) += 50*(SB_SUBMODE_BITS+1);
       break;
+   case SPEEX_SET_HANDLER:
+      speex_decoder_ctl(st->st_low, SPEEX_SET_HANDLER, ptr);
+      break;
+   case SPEEX_SET_USER_HANDLER:
+      speex_decoder_ctl(st->st_low, SPEEX_SET_USER_HANDLER, ptr);
+      break;
    case SPEEX_GET_PI_GAIN:
       {
          int i;
    case SPEEX_GET_PI_GAIN:
       {
          int i;