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/codecs.h | |
| parent | 566ce5f95163f8bbb7357dc7353bb132365f7b6e (diff) | |
| download | rockbox-413da2a3d93d989d4474edad437ff67888487cb9.zip rockbox-413da2a3d93d989d4474edad437ff67888487cb9.tar.gz rockbox-413da2a3d93d989d4474edad437ff67888487cb9.tar.bz2 rockbox-413da2a3d93d989d4474edad437ff67888487cb9.tar.xz | |
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/codecs.h')
| -rw-r--r-- | apps/codecs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs.h b/apps/codecs.h index 00f0f64..cf0324b 100644 --- a/apps/codecs.h +++ b/apps/codecs.h @@ -128,8 +128,8 @@ struct codec_api { void* (*get_codec_memory)(long *size); /* Insert PCM data into audio buffer for playback. Playback will start automatically. */ - bool (*pcmbuf_insert)(char *data, long length); - bool (*pcmbuf_insert_split)(void *ch1, void *ch2, long length); + bool (*pcmbuf_insert)(const char *data, size_t length); + bool (*pcmbuf_insert_split)(const void *ch1, const void *ch2, size_t length); /* Set song position in WPS (value in ms). */ void (*set_elapsed)(unsigned int value); |