summaryrefslogtreecommitdiffstats
path: root/firmware/export/pcm_playback.h
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2005-07-13 12:48:22 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2005-07-13 12:48:22 +0000
commit20b3897474cfa680e33f7d03feb6644390fd2b20 (patch)
tree6f0cb7bde0b73317e62ad9131a7c81aeff00942a /firmware/export/pcm_playback.h
parent10a680556aa690d8643516f74db471e5da8db930 (diff)
downloadrockbox-20b3897474cfa680e33f7d03feb6644390fd2b20.tar.gz
rockbox-20b3897474cfa680e33f7d03feb6644390fd2b20.zip
Separated buffering stuff from pcm_playback to pcmbuf. Renamed some
function calls (audiobuffer -> pcmbuf etc.). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7131 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/pcm_playback.h')
-rw-r--r--firmware/export/pcm_playback.h30
1 files changed, 2 insertions, 28 deletions
diff --git a/firmware/export/pcm_playback.h b/firmware/export/pcm_playback.h
index c29cd2a03e..3f0b5eee86 100644
--- a/firmware/export/pcm_playback.h
+++ b/firmware/export/pcm_playback.h
@@ -19,41 +19,15 @@
#ifndef PCM_PLAYBACK_H
#define PCM_PLAYBACK_H
-/* Guard buffer for crossfader when dsp is enabled. */
-#define PCMBUF_GUARD 32768
-
-/* PCM audio buffer. */
-#define PCMBUF_SIZE (1*1024*1024)
-
void pcm_init(void);
void pcm_set_frequency(unsigned int frequency);
/* This is for playing "raw" PCM data */
-void pcm_play_data(const unsigned char* start, int size,
- void (*get_more)(unsigned char** start, long* size));
+void pcm_play_data(void (*get_more)(unsigned char** start, long* size));
void pcm_play_stop(void);
void pcm_play_pause(bool play);
+bool pcm_is_paused(void);
bool pcm_is_playing(void);
-bool pcm_is_crossfade_active(void);
-
-/* These functions are for playing chained buffers of PCM data */
-void pcm_play_init(void);
-void pcm_play_start(void);
-bool pcm_play_add_chunk(void *addr, int size, void (*callback)(void));
-int pcm_play_num_used_buffers(void);
-void pcm_play_set_watermark(int numbytes, void (*callback)(int bytes_left));
-
-void pcm_set_boost_mode(bool state);
-bool pcm_is_lowdata(void);
-void pcm_flush_audio(void);
-bool pcm_crossfade_init(void);
-void audiobuffer_add_event(void (*event_handler)(void));
-unsigned int audiobuffer_get_latency(void);
-bool pcm_insert_buffer(char *buf, long length);
-void pcm_flush_buffer(long length);
-void* pcm_request_buffer(long length, long *realsize);
-bool pcm_is_crossfade_enabled(void);
-void pcm_crossfade_enable(bool on_off);
#endif