From e1dd10ddfb49bfdd05fa8997bc097df93a9c9466 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 19 Mar 2007 22:04:17 +0000 Subject: SWCODEC: Get rid of extra swap buffer and get back 512K of RAM or 100K if the players RAM is <= 1MB. Make any needed changes to things to stabilize and facilitate this including removing flattening out initialization. Comment some things heavily. Fix a few logfs I didn't want to see the compiler complaining about. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12843 a1c6a512-1295-4272-9138-f99709370657 --- apps/pcmbuf.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'apps/pcmbuf.h') diff --git a/apps/pcmbuf.h b/apps/pcmbuf.h index 5c35ecc291..bddc7bb93d 100644 --- a/apps/pcmbuf.h +++ b/apps/pcmbuf.h @@ -37,10 +37,14 @@ for mixing (crossfade or voice) */ /* Returns true if the buffer needs to change size */ -bool pcmbuf_is_same_size(size_t bufsize); -size_t pcmbuf_init(size_t bufsize, char *bufend); +bool pcmbuf_is_same_size(void); +size_t pcmbuf_init(unsigned char *bufend); /* Size in bytes used by the pcmbuffer */ size_t pcmbuf_get_bufsize(void); +#ifdef ROCKBOX_HAS_LOGF +/* just used for logging for now */ +unsigned char * pcmbuf_get_meminfo(size_t *length); +#endif size_t get_pcmbuf_descsize(void); void pcmbuf_pause(bool pause); @@ -68,7 +72,7 @@ void* pcmbuf_request_buffer(int *count); void* pcmbuf_request_voice_buffer(int *count, bool mix); bool pcmbuf_is_crossfade_enabled(void); void pcmbuf_crossfade_enable(bool on_off); - +void pcmbuf_crossfade_enable_finished(void); int pcmbuf_usage(void); int pcmbuf_mix_free(void); void pcmbuf_beep(unsigned int frequency, size_t duration, int amplitude); -- cgit v1.2.3