summaryrefslogtreecommitdiffstats
path: root/apps/pcmbuf.h
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-04-23 22:54:34 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-04-23 22:54:34 +0000
commit6c0908b4160838142225c5b570036c4d98de4ece (patch)
tree7f7bbb156806fecdb9da63380d4c6e322577deaa /apps/pcmbuf.h
parent6a6c322a197bf07c72010aae40dd63f12e9cf98a (diff)
downloadrockbox-6c0908b4160838142225c5b570036c4d98de4ece.tar.gz
rockbox-6c0908b4160838142225c5b570036c4d98de4ece.tar.bz2
rockbox-6c0908b4160838142225c5b570036c4d98de4ece.zip
Rework crossfade to properly follow pcmbuf chunks instaed of blindly inserting into the ring buffer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9780 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.h')
-rw-r--r--apps/pcmbuf.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/pcmbuf.h b/apps/pcmbuf.h
index 819d5011cf..ffd62ed1b6 100644
--- a/apps/pcmbuf.h
+++ b/apps/pcmbuf.h
@@ -21,10 +21,6 @@
#define PCMBUF_TARGET_CHUNK 32768 /* This is the target fill size of chunks
on the pcm buffer */
-#define PCMBUF_MINAVG_CHUNK 24576 /* This is the minimum average size of
- chunks on the pcm buffer (or we run out
- of buffer descriptors, which is
- non-fatal) */
#define PCMBUF_MIN_CHUNK 4096 /* We try to never feed a chunk smaller than
this to the DMA */
#define PCMBUF_MIX_CHUNK 8192 /* This is the maximum size of one packet
@@ -54,9 +50,9 @@ void pcmbuf_play_start(void);
bool pcmbuf_crossfade_init(bool manual_skip);
void pcmbuf_set_event_handler(void (*callback)(void));
void pcmbuf_set_position_callback(void (*callback)(size_t size));
+size_t pcmbuf_free(void);
unsigned int pcmbuf_get_latency(void);
void pcmbuf_set_low_latency(bool state);
-bool pcmbuf_insert_buffer(const char *buf, size_t length);
void pcmbuf_write_complete(size_t length);
void* pcmbuf_request_buffer(size_t length, size_t *realsize);
void* pcmbuf_request_voice_buffer(size_t length, size_t *realsize, bool mix);