summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/mdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libspeex/mdf.c')
-rw-r--r--apps/codecs/libspeex/mdf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/libspeex/mdf.c b/apps/codecs/libspeex/mdf.c
index 2fe3bd08fd..e9ea0fadba 100644
--- a/apps/codecs/libspeex/mdf.c
+++ b/apps/codecs/libspeex/mdf.c
@@ -368,7 +368,7 @@ static void dump_audio(const spx_int16_t *rec, const spx_int16_t *play, const sp
368{ 368{
369 if (!(rFile && pFile && oFile)) 369 if (!(rFile && pFile && oFile))
370 { 370 {
371 speex_error("Dump files not open"); 371 speex_fatal("Dump files not open");
372 } 372 }
373 fwrite(rec, sizeof(spx_int16_t), len, rFile); 373 fwrite(rec, sizeof(spx_int16_t), len, rFile);
374 fwrite(play, sizeof(spx_int16_t), len, pFile); 374 fwrite(play, sizeof(spx_int16_t), len, pFile);
@@ -384,10 +384,10 @@ SpeexEchoState *speex_echo_state_init(int frame_size, int filter_length)
384 384
385#ifdef DUMP_ECHO_CANCEL_DATA 385#ifdef DUMP_ECHO_CANCEL_DATA
386 if (rFile || pFile || oFile) 386 if (rFile || pFile || oFile)
387 speex_error("Opening dump files twice"); 387 speex_fatal("Opening dump files twice");
388 rFile = fopen("aec_rec.sw", "w"); 388 rFile = fopen("aec_rec.sw", "wb");
389 pFile = fopen("aec_play.sw", "w"); 389 pFile = fopen("aec_play.sw", "wb");
390 oFile = fopen("aec_out.sw", "w"); 390 oFile = fopen("aec_out.sw", "wb");
391#endif 391#endif
392 392
393 st->frame_size = frame_size; 393 st->frame_size = frame_size;
@@ -635,13 +635,13 @@ void speex_echo_playback(SpeexEchoState *st, const spx_int16_t *play)
635 } 635 }
636} 636}
637 637
638/** Performs echo cancellation on a frame */ 638/** Performs echo cancellation on a frame (deprecated, last arg now ignored) */
639void speex_echo_cancel(SpeexEchoState *st, const spx_int16_t *in, const spx_int16_t *far_end, spx_int16_t *out, spx_int32_t *Yout) 639void speex_echo_cancel(SpeexEchoState *st, const spx_int16_t *in, const spx_int16_t *far_end, spx_int16_t *out, spx_int32_t *Yout)
640{ 640{
641 speex_echo_cancellation(st, in, far_end, out); 641 speex_echo_cancellation(st, in, far_end, out);
642} 642}
643 643
644/** Performs echo cancellation on a frame (deprecated, last arg now ignored) */ 644/** Performs echo cancellation on a frame */
645void speex_echo_cancellation(SpeexEchoState *st, const spx_int16_t *in, const spx_int16_t *far_end, spx_int16_t *out) 645void speex_echo_cancellation(SpeexEchoState *st, const spx_int16_t *in, const spx_int16_t *far_end, spx_int16_t *out)
646{ 646{
647 int i,j; 647 int i,j;