forked from len0rd/rockbox
Rework PCM buffer
* Linked list instead of static array buffer pointers * Variable sized chunks * Improved mix handling * Reduction in duplicated code * Reduced IRAM usage w/o sacrificing performance * Converted to almost entirely unsigned math * Add pause function to reduce pcm_* exposure to playback. This WILL break playback on the iPod until linuxstb makes a followup commit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8612 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
566ce5f951
commit
413da2a3d9
13 changed files with 667 additions and 531 deletions
|
|
@ -35,7 +35,7 @@ static unsigned short *gmbuf;
|
|||
|
||||
static bool newly_started;
|
||||
|
||||
void get_more(unsigned char** start, long* size)
|
||||
void get_more(unsigned char** start, size_t* size)
|
||||
{
|
||||
#ifdef ONEBUF
|
||||
doneplay=1;
|
||||
|
|
@ -108,7 +108,7 @@ int pcm_submit(void)
|
|||
|
||||
if(newly_started)
|
||||
{
|
||||
rb->pcm_play_data(&get_more);
|
||||
rb->pcm_play_data(&get_more,NULL,0);
|
||||
newly_started = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue