This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11758 - lock the audio buffer with a mutex and minimise its direct use
Attached to Project:
Rockbox
Opened by Jonathan Gordon (jdgordon) - Sunday, 14 November 2010, 01:44 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Sunday, 18 September 2011, 09:39 GMT+2
Opened by Jonathan Gordon (jdgordon) - Sunday, 14 November 2010, 01:44 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Sunday, 18 September 2011, 09:39 GMT+2
|
Detailsthings shouldnt use audiobuf directly, so this patch works to get rid of that.
buffer_claim() is used to lock the buffer and _unclaim() is to release it. I put a panic in buffer_alloc() when it is unclaimed but that caused problems because untill audio starts nothing really claims the buffer, so we need to work out how to make his actually work. Right now only playback.c mp3data.c and talk.c still use audiobuf directly (which needs to be changed) not really sure how far to take this. |
This task depends upon
Closed by Jonathan Gordon (jdgordon)
Sunday, 18 September 2011, 09:39 GMT+2
Reason for closing: Out of Date
Sunday, 18 September 2011, 09:39 GMT+2
Reason for closing: Out of Date