This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#5992 - Reworked playback.c to fix voice bugs
Attached to Project:
Rockbox
Opened by Steve Bavin (pondlife) - Thursday, 14 September 2006, 13:42 GMT+2
Opened by Steve Bavin (pondlife) - Thursday, 14 September 2006, 13:42 GMT+2
|
DetailsThis is a fairly major reworking of playback.c/pcmbuf.c, to simplify the code and fix crashes which occur when playback stops naturally while using voice and when skipping tracks quickly.
Having removed quite a few wait loops and a few special cases, I quite expect it will introduce more problems ;-) Please can you test this and report back with recipes for any problems! |
This task depends upon
Closed by Steve Bavin (pondlife)
Monday, 18 September 2006, 13:16 GMT+2
Reason for closing: Accepted
Additional comments about closing: Well, it\'s in there and out there now...
Monday, 18 September 2006, 13:16 GMT+2
Reason for closing: Accepted
Additional comments about closing: Well, it\'s in there and out there now...
I had to move all of the state transitions inside the queue reading thread to fix a stop/skip race condition (at least I think that's what it was).
Maybe we need a new wps_playing variable to allow the WPS to be updated faster?
I'll add some comments next time round to the meanings (as I see them) of playing, voice_is_playing, audio_codec_loaded and voice_codec_loaded. There was (and likely still is) a little confusion regarding the these variables.
A wps_playing variable might make sense. I think that some combination of other variables used to indicate this state, but simplification can come _after_ functioning.
p.s. Maybe we need a marker on Flyspray patches to say whether work-in-progress or not?