diff options
Diffstat (limited to 'apps/codecs/speex.c')
-rw-r--r-- | apps/codecs/speex.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/codecs/speex.c b/apps/codecs/speex.c index 12d880c045..a9b333b9a6 100644 --- a/apps/codecs/speex.c +++ b/apps/codecs/speex.c | |||
@@ -369,9 +369,9 @@ static void *process_header(spx_ogg_packet *op, | |||
369 | *nframes = header->frames_per_packet; | 369 | *nframes = header->frames_per_packet; |
370 | 370 | ||
371 | if (*channels == 2) { | 371 | if (*channels == 2) { |
372 | rb->configure(DSP_SET_STEREO_MODE, (int *)STEREO_INTERLEAVED); | 372 | rb->configure(DSP_SET_STEREO_MODE, STEREO_INTERLEAVED); |
373 | } else if (*channels == 1) { | 373 | } else if (*channels == 1) { |
374 | rb->configure(DSP_SET_STEREO_MODE, (int *)STEREO_MONO); | 374 | rb->configure(DSP_SET_STEREO_MODE, STEREO_MONO); |
375 | } | 375 | } |
376 | 376 | ||
377 | *extra_headers = header->extra_headers; | 377 | *extra_headers = header->extra_headers; |
@@ -409,9 +409,9 @@ enum codec_status codec_main(void) | |||
409 | int j; | 409 | int j; |
410 | rb = ci; | 410 | rb = ci; |
411 | 411 | ||
412 | //rb->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (long *)(CHUNKSIZE*128)); | 412 | //rb->configure(CODEC_SET_FILEBUF_CHUNKSIZE, CHUNKSIZE*128); |
413 | //rb->configure(DSP_DITHER, (bool *)false); | 413 | //rb->configure(DSP_DITHER, false); |
414 | rb->configure(DSP_SET_SAMPLE_DEPTH, (long *)16); | 414 | rb->configure(DSP_SET_SAMPLE_DEPTH, 16); |
415 | 415 | ||
416 | /* We need to flush reserver memory every track load. */ | 416 | /* We need to flush reserver memory every track load. */ |
417 | next_track: | 417 | next_track: |
@@ -501,7 +501,7 @@ next_page: | |||
501 | 501 | ||
502 | rb->id3->vbr = true; | 502 | rb->id3->vbr = true; |
503 | rb->id3->frequency = samplerate; | 503 | rb->id3->frequency = samplerate; |
504 | rb->configure(DSP_SET_FREQUENCY, (int *)(rb->id3->frequency)); | 504 | rb->configure(DSP_SET_FREQUENCY, rb->id3->frequency); |
505 | 505 | ||
506 | /* Speex header in its own page, add the whole page | 506 | /* Speex header in its own page, add the whole page |
507 | headersize */ | 507 | headersize */ |