diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-02-07 20:38:55 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-02-07 20:38:55 +0000 |
commit | 413da2a3d93d989d4474edad437ff67888487cb9 (patch) | |
tree | ecf938aa0aedc92db749be69e62648050f2fd712 /apps/plugins/rockboy | |
parent | 566ce5f95163f8bbb7357dc7353bb132365f7b6e (diff) | |
download | rockbox-413da2a3d93d989d4474edad437ff67888487cb9.tar.gz rockbox-413da2a3d93d989d4474edad437ff67888487cb9.zip |
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
Diffstat (limited to 'apps/plugins/rockboy')
-rw-r--r-- | apps/plugins/rockboy/rbsound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/rockboy/rbsound.c b/apps/plugins/rockboy/rbsound.c index 3eebea8bef..6371212ca8 100644 --- a/apps/plugins/rockboy/rbsound.c +++ b/apps/plugins/rockboy/rbsound.c | |||
@@ -35,7 +35,7 @@ static unsigned short *gmbuf; | |||
35 | 35 | ||
36 | static bool newly_started; | 36 | static bool newly_started; |
37 | 37 | ||
38 | void get_more(unsigned char** start, long* size) | 38 | void get_more(unsigned char** start, size_t* size) |
39 | { | 39 | { |
40 | #ifdef ONEBUF | 40 | #ifdef ONEBUF |
41 | doneplay=1; | 41 | doneplay=1; |
@@ -108,7 +108,7 @@ int pcm_submit(void) | |||
108 | 108 | ||
109 | if(newly_started) | 109 | if(newly_started) |
110 | { | 110 | { |
111 | rb->pcm_play_data(&get_more); | 111 | rb->pcm_play_data(&get_more,NULL,0); |
112 | newly_started = false; | 112 | newly_started = false; |
113 | } | 113 | } |
114 | 114 | ||