This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10739 - Playback.c refactor
Attached to Project:
Rockbox
Opened by Jeffrey Goode (Blue_Dude) - Friday, 30 October 2009, 00:49 GMT+2
Last edited by Jeffrey Goode (Blue_Dude) - Sunday, 01 November 2009, 01:13 GMT+2
Opened by Jeffrey Goode (Blue_Dude) - Friday, 30 October 2009, 00:49 GMT+2
Last edited by Jeffrey Goode (Blue_Dude) - Sunday, 01 November 2009, 01:13 GMT+2
|
DetailsThis is an initial refactoring of playback.h and playback.c. This first attempt separates the codec thread from the audio thread. There are some similarities in a shared common codebase, mostly a few common variables. It compiles cleanly for a couple of targets and there's no apparent harm, but this project needs a fresh set of eyes.
Other than fixing a couple of small items, there should be no change. That comes later. ;) |
This task depends upon
Closed by Jeffrey Goode (Blue_Dude)
Sunday, 01 November 2009, 01:13 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed as r23444
Sunday, 01 November 2009, 01:13 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed as r23444
This should definitely use wakeups (or queues if you don't want the increased binsize) instead of the busy-looping, but I'm not sure if this applies to your rework. If not, could you try generalizing the part that sets ci->stop_codec and ci->taginfo_ready, so it'll be easier for someone to change it to wakeups/queues later on?
If not, wakeup objects should be used (which definitely have that behaviour).