From 1d893a05c6b3e73a8cda660d4a4cbc209c0fe0d9 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 3 Feb 2019 21:54:25 -0500 Subject: pitchscreen: Fix compile on HWCODEC players. Change-Id: Iffb7018e935e017baf84ddc8e742270f82b996ab --- apps/gui/pitchscreen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/gui/pitchscreen.c b/apps/gui/pitchscreen.c index 443a967178..bf016fdd5f 100644 --- a/apps/gui/pitchscreen.c +++ b/apps/gui/pitchscreen.c @@ -162,14 +162,18 @@ static bool at_limit = false; * | | | | <-- Two "OK" for exit on the sides for touchscreen * |------------------------| * - * + * */ static void speak_pitch_mode(bool enqueue) { +#if CONFIG_CODEC == SWCODEC bool timestretch_mode = global_settings.pitch_mode_timestretch && dsp_timestretch_available(); if (timestretch_mode) talk_id(VOICE_PITCH_TIMESTRETCH_MODE, enqueue); +#else +#define timestretch_mode 0 +#endif if (global_settings.pitch_mode_semitone) talk_id(VOICE_PITCH_SEMITONE_MODE, timestretch_mode ? true : enqueue); else -- cgit v1.2.3