1
0
Fork 0
forked from len0rd/rockbox

e200: Add recording. Just from MIC right now and FM integration will happen soon. Most every bit of weirdness is nescessary and no problems seem to exist that the retailos doesn't exhibit too (namely noise when LCD is on when recording from MIC).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13557 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2007-06-05 07:03:30 +00:00
parent fea88888f0
commit bcb8a884ee
12 changed files with 559 additions and 133 deletions

View file

@ -292,18 +292,13 @@ enum rec_freq_indexes
#define REC_HAVE_8_(...)
#endif
REC_NUM_FREQ,
/* This should always come out I reckon */
REC_FREQ_DEFAULT = REC_FREQ_44,
/* Get the minimum bitcount needed to save the range of values */
REC_FREQ_CFG_NUM_BITS = (REC_NUM_FREQ > 8 ?
4 : (REC_NUM_FREQ > 4 ?
3 : (REC_NUM_FREQ > 2 ?
2 : 1
)
)
),
}; /* enum rec_freq_indexes */
/* Default to 44.1kHz if not otherwise specified */
#ifndef REC_FREQ_DEFAULT
#define REC_FREQ_DEFAULT REC_FREQ_44
#endif
#define REC_FREQ_CFG_VAL_LIST &REC_HAVE_96_(",96") REC_HAVE_88_(",88") \
REC_HAVE_64_(",64") REC_HAVE_48_(",48") \
REC_HAVE_44_(",44") REC_HAVE_32_(",32") \