summaryrefslogtreecommitdiffstats
path: root/apps/pcmbuf.h
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2009-11-06 04:13:36 +0000
committerJeffrey Goode <jeffg7@gmail.com>2009-11-06 04:13:36 +0000
commit37adbee236b8a85e576e8b67aad9564de849d85a (patch)
tree8bc8fd2250e5231925054d5d1629b4b91f53eb94 /apps/pcmbuf.h
parent3e73fecf68116b53847cf58307807665af94f86d (diff)
downloadrockbox-37adbee236b8a85e576e8b67aad9564de849d85a.tar.gz
rockbox-37adbee236b8a85e576e8b67aad9564de849d85a.tar.bz2
rockbox-37adbee236b8a85e576e8b67aad9564de849d85a.zip
pcmbuf: sorted functions into logical sections for readability. Tiny changes, nothing functional
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23541 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.h')
-rw-r--r--apps/pcmbuf.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/apps/pcmbuf.h b/apps/pcmbuf.h
index f8e69055be..dff5a6337e 100644
--- a/apps/pcmbuf.h
+++ b/apps/pcmbuf.h
@@ -21,25 +21,29 @@
#ifndef PCMBUF_H
#define PCMBUF_H
-/* playback */
+/* Commit PCM data */
+void *pcmbuf_request_buffer(int *count);
+void pcmbuf_write_complete(int count);
+
+/* Init */
size_t pcmbuf_init(unsigned char *bufend);
+
+/* Playback */
void pcmbuf_play_start(void);
void pcmbuf_play_stop(void);
void pcmbuf_pause(bool pause);
void pcmbuf_start_track_change(bool manual_skip);
-void *pcmbuf_request_buffer(int *count);
-void pcmbuf_write_complete(int count);
-/* crossfade */
+/* Crossfade */
bool pcmbuf_is_crossfade_active(void);
void pcmbuf_request_crossfade_enable(bool on_off);
bool pcmbuf_is_same_size(void);
-/* voice */
+/* Voice */
void *pcmbuf_request_voice_buffer(int *count);
void pcmbuf_write_voice_complete(int count);
-/* debug menu, other metrics */
+/* Debug menu, other metrics */
size_t pcmbuf_free(void);
size_t pcmbuf_get_bufsize(void);
int pcmbuf_descs(void);
@@ -49,9 +53,9 @@ unsigned char *pcmbuf_get_meminfo(size_t *length);
#endif
/* misc */
-void pcmbuf_beep(unsigned int frequency, size_t duration, int amplitude);
bool pcmbuf_is_lowdata(void);
void pcmbuf_set_low_latency(bool state);
unsigned long pcmbuf_get_latency(void);
+void pcmbuf_beep(unsigned int frequency, size_t duration, int amplitude);
#endif