summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/pitch_detector.c5
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