summaryrefslogtreecommitdiff
path: root/firmware/export/pcm_sampr.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-06-26 10:07:17 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-06-26 10:07:17 +0000
commitb15a523870d6aa45b38b92547053beb986b92d9a (patch)
tree8b75fe5f13a3418186cb11c01062ad415490036b /firmware/export/pcm_sampr.h
parentac622c6d673c708d48527db8a189401422a5d03c (diff)
downloadrockbox-b15a523870d6aa45b38b92547053beb986b92d9a.tar.gz
rockbox-b15a523870d6aa45b38b92547053beb986b92d9a.zip
e200v1/c200v1: Implement limited samplerate switching. Rates 24kHz and below are being a bear as far as minor crackling at higher amplitude-- leave them out for the time being since no solution is currently evident. 48, 44, 32 (rec rates 24, 22, 16) seem perfectly fine. I'm betting c200 is ok to include because it uses the same setup as e200.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27139 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/pcm_sampr.h')
-rw-r--r--firmware/export/pcm_sampr.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/firmware/export/pcm_sampr.h b/firmware/export/pcm_sampr.h
index 2204b9c059..54db8a1dfb 100644
--- a/firmware/export/pcm_sampr.h
+++ b/firmware/export/pcm_sampr.h
@@ -312,4 +312,24 @@ enum rec_freq_indexes
312extern const unsigned long rec_freq_sampr[REC_NUM_FREQ]; 312extern const unsigned long rec_freq_sampr[REC_NUM_FREQ];
313#endif /* HAVE_RECORDING */ 313#endif /* HAVE_RECORDING */
314 314
315#ifdef CONFIG_SAMPR_TYPES
316
317#define SAMPR_TYPE_MASK (0xff << 24)
318#define SAMPR_TYPE_PLAY (0x00 << 24)
319#ifdef HAVE_RECORDING
320#define SAMPR_TYPE_REC (0x01 << 24)
321#endif
322
323unsigned int sampr_type_rec_to_play(unsigned int samplerate);
324
325#else /* ndef CONFIG_SAMPR_TYPES */
326
327/* Types are ignored and == 0 */
328#define SAMPR_TYPE_PLAY 0
329#ifdef HAVE_RECORDING
330#define SAMPR_TYPE_REC 0
331#endif
332
333#endif /* CONFIG_SAMPR_TYPES */
334
315#endif /* PCM_SAMPR_H */ 335#endif /* PCM_SAMPR_H */