summaryrefslogtreecommitdiffstats
path: root/apps/pcmbuf.h
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-04-22 14:40:13 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-04-22 14:40:13 +0000
commitf3bc1efc49826454a895c1c1f46fbe2cfd23f492 (patch)
tree676d501a9e75a9420f07a13f1d7fc1c5820b432a /apps/pcmbuf.h
parentb5991b27cafa8cc8bd2e86e04110beec34a587e0 (diff)
downloadrockbox-f3bc1efc49826454a895c1c1f46fbe2cfd23f492.tar.gz
rockbox-f3bc1efc49826454a895c1c1f46fbe2cfd23f492.tar.bz2
rockbox-f3bc1efc49826454a895c1c1f46fbe2cfd23f492.zip
First commit of reworking voice to be mroe stable on swcodec
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9758 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.h')
-rw-r--r--apps/pcmbuf.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/pcmbuf.h b/apps/pcmbuf.h
index b659e8fa4e..819d5011cf 100644
--- a/apps/pcmbuf.h
+++ b/apps/pcmbuf.h
@@ -27,7 +27,7 @@
non-fatal) */
#define PCMBUF_MIN_CHUNK 4096 /* We try to never feed a chunk smaller than
this to the DMA */
-#define PCMBUF_FADE_CHUNK 8192 /* This is the maximum size of one packet
+#define PCMBUF_MIX_CHUNK 8192 /* This is the maximum size of one packet
for mixing (crossfade or voice) */
/* Returns true if the buffer needs to change size */
@@ -64,10 +64,9 @@ bool pcmbuf_is_crossfade_enabled(void);
void pcmbuf_crossfade_enable(bool on_off);
int pcmbuf_usage(void);
-int pcmbuf_mix_usage(void);
+int pcmbuf_mix_free(void);
void pcmbuf_beep(unsigned int frequency, size_t duration, int amplitude);
-void pcmbuf_reset_mixpos(void);
-void pcmbuf_mix(char *buf, size_t length);
+void pcmbuf_mix_voice(size_t length);
int pcmbuf_used_descs(void);
int pcmbuf_descs(void);