diff options
author | Dave Chapman <dave@dchapman.com> | 2009-10-04 02:31:27 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2009-10-04 02:31:27 +0000 |
commit | 0d81702f527f68d805c327aa9a2f2fc1ea4f16c1 (patch) | |
tree | e49a258a1a95bba5a5cb4b889d96db230374788d /apps/plugins | |
parent | 82970fda2ee5a781edd06987112162c9d38e9524 (diff) |
Don't assume AUDIO_SRC_MIC always exists.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22907 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/pitch_detector.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c index 7e8cfeaa0e..188bab6016 100644 --- a/apps/plugins/pitch_detector.c +++ b/apps/plugins/pitch_detector.c @@ -212,8 +212,13 @@ const struct freq_A_entry freq_A[] = /* How loud the audio has to be to start displaying pitch */ /* Must be between 0 and 100 */ #define VOLUME_THRESHOLD (50) + /* Change to AUDIO_SRC_LINEIN if you want to record from line-in */ +#ifdef HAVE_MIC_IN #define INPUT_TYPE AUDIO_SRC_MIC +#else +#define INPUT_TYPE AUDIO_SRC_LINEIN +#endif /* How many decimal places to display for the Hz value */ #define DISPLAY_HZ_PRECISION 100 |