decoder excitation now in 16-bit precision (was 32), which saves quite a bit
[speexdsp.git] / libspeex / speex_callbacks.c
index a8750cc..0b99188 100644 (file)
 
 */
 
-#include "speex_callbacks.h"
-#include <stdio.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <speex/speex_callbacks.h>
+#include "misc.h"
 
 int speex_inband_handler(SpeexBits *bits, SpeexCallback *callback_list, void *state)
 {
@@ -47,7 +51,7 @@ int speex_inband_handler(SpeexBits *bits, SpeexCallback *callback_list, void *st
    {
       return callback->func(bits, state, callback->data);
    } else
-      /*If callback is not registered, skip the right numbr of bits*/
+      /*If callback is not registered, skip the right number of bits*/
    {
       int adv;
       if (id<2)
@@ -119,9 +123,9 @@ int speex_std_vbr_quality_request_handler(SpeexBits *bits, void *state, void *da
 int speex_std_char_handler(SpeexBits *bits, void *state, void *data)
 {
    unsigned char ch;
-   FILE *f = (FILE *)data;
    ch = speex_bits_unpack_unsigned(bits, 8);
-   fputc(ch, f);
+   _speex_putc(ch, data);
+   /*printf("speex_std_char_handler ch=%x\n", ch);*/
    return 0;
 }