This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6760 - Stereo Speex files produce only silence in Rockbox
Attached to Project:
Rockbox
Opened by Bryan Childs (GodEater) - Thursday, 08 March 2007, 08:26 GMT+2
Last edited by Thom Johansen (preglow) - Saturday, 10 November 2007, 16:28 GMT+2
Opened by Bryan Childs (GodEater) - Thursday, 08 March 2007, 08:26 GMT+2
Last edited by Thom Johansen (preglow) - Saturday, 10 November 2007, 16:28 GMT+2
|
DetailsWhen ripping direct from CD and converting immediately to speex, the resulting files appear to playback in Rockbox fine (i.e. the progress bar moves, and the time remaining changes) however you can't actually hear any audio. Converting the wav file from the CD rip to mono, and then re-encoding resolves the issue.
|
This task depends upon
speex_decode_int(st, &bits, output);
if (channels == 2)
speex_decode_stereo_int(output, frame_size, &stereo);
ci->pcmbuf_insert(output, NULL, frame_size * channels)
or something like that anyway. I'll take a look again when I get a chance.
To debug it i would try to use real (floating point) sqrt&exp functions in the emulator, and if that not works look at
void speex_decode_stereo_int(spx_int16_t *data, int frame_size, SpeexStereoState *stereo)
and int speex_std_stereo_request_handler(SpeexBits *bits, void *state, void *data) in stereo.c
e_left = sqrt(e_left/(e_tot+.01));
e_right = sqrt(e_right/(e_tot+.01));
with
e_left=1;
e_right=1;
in speex_decode_stereo_int (stereo.c:~166)