From e69d567d9ebf7d236ff9663b11ac396cc71dcd75 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 12 Dec 2008 11:01:07 +0000 Subject: Bring consistency to pcm implementation and samplerate handling. Less low-level duplication. A small test_sampr fix so it works on coldfire again. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19400 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/pcm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'firmware/export/pcm.h') diff --git a/firmware/export/pcm.h b/firmware/export/pcm.h index 1660f0670d..ac8ddb1b3c 100644 --- a/firmware/export/pcm.h +++ b/firmware/export/pcm.h @@ -57,7 +57,7 @@ typedef int (*pcm_more_callback_type2)(int status); /* set the pcm frequency - use values in hw_sampr_list * use -1 for the default frequency */ -void pcm_set_frequency(unsigned int frequency); +void pcm_set_frequency(unsigned int samplerate); /* apply settings to hardware immediately */ void pcm_apply_settings(void); @@ -87,6 +87,8 @@ bool pcm_is_playing(void); specific portion **/ extern unsigned long pcm_curr_sampr; +extern unsigned long pcm_sampr; +extern int pcm_fsel; /* the registered callback function to ask for more mp3 data */ extern volatile pcm_more_callback_type pcm_callback_for_more; @@ -102,6 +104,8 @@ void pcm_play_dma_pause(bool pause); void pcm_play_dma_stopped_callback(void); const void * pcm_play_dma_get_peak_buffer(int *count); +void pcm_dma_apply_settings(void); + #ifdef HAVE_RECORDING /** RAW PCM recording routines **/ -- cgit v1.2.3