summaryrefslogtreecommitdiffstats
path: root/apps/pcmbuf.h
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-02-22 01:56:44 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-02-22 01:56:44 +0000
commit9535a9a6390ca51b11d13a8dd338432c466f4477 (patch)
treef42602ea43e1c2d0e196fd293ac7561bcccfe6d8 /apps/pcmbuf.h
parenta13f8471863e868a2d744baac4a5f5b20b3fa842 (diff)
downloadrockbox-9535a9a6390ca51b11d13a8dd338432c466f4477.tar.gz
rockbox-9535a9a6390ca51b11d13a8dd338432c466f4477.tar.bz2
rockbox-9535a9a6390ca51b11d13a8dd338432c466f4477.zip
Fix some of the voice and beep bugs that people have noticed since my new pcmbuf code went in, reduce code duplication, and improve performance while I'm at it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8775 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.h')
-rw-r--r--apps/pcmbuf.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/pcmbuf.h b/apps/pcmbuf.h
index 555c1bcb33..b659e8fa4e 100644
--- a/apps/pcmbuf.h
+++ b/apps/pcmbuf.h
@@ -58,7 +58,6 @@ 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_write_voice(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);
bool pcmbuf_is_crossfade_enabled(void);
@@ -66,7 +65,7 @@ void pcmbuf_crossfade_enable(bool on_off);
int pcmbuf_usage(void);
int pcmbuf_mix_usage(void);
-void pcmbuf_beep(int frequency, int duration, int amplitude);
+void pcmbuf_beep(unsigned int frequency, size_t duration, int amplitude);
void pcmbuf_reset_mixpos(void);
void pcmbuf_mix(char *buf, size_t length);