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
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue