forked from len0rd/rockbox
Don't assume AUDIO_SRC_MIC always exists.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22907 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
82970fda2e
commit
0d81702f52
1 changed files with 5 additions and 0 deletions
|
|
@ -212,8 +212,13 @@ const struct freq_A_entry freq_A[] =
|
||||||
/* How loud the audio has to be to start displaying pitch */
|
/* How loud the audio has to be to start displaying pitch */
|
||||||
/* Must be between 0 and 100 */
|
/* Must be between 0 and 100 */
|
||||||
#define VOLUME_THRESHOLD (50)
|
#define VOLUME_THRESHOLD (50)
|
||||||
|
|
||||||
/* Change to AUDIO_SRC_LINEIN if you want to record from line-in */
|
/* Change to AUDIO_SRC_LINEIN if you want to record from line-in */
|
||||||
|
#ifdef HAVE_MIC_IN
|
||||||
#define INPUT_TYPE AUDIO_SRC_MIC
|
#define INPUT_TYPE AUDIO_SRC_MIC
|
||||||
|
#else
|
||||||
|
#define INPUT_TYPE AUDIO_SRC_LINEIN
|
||||||
|
#endif
|
||||||
|
|
||||||
/* How many decimal places to display for the Hz value */
|
/* How many decimal places to display for the Hz value */
|
||||||
#define DISPLAY_HZ_PRECISION 100
|
#define DISPLAY_HZ_PRECISION 100
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue