diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2019-02-03 21:54:25 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2019-02-04 03:58:52 +0100 |
commit | 1d893a05c6b3e73a8cda660d4a4cbc209c0fe0d9 (patch) | |
tree | c00c08f58ccd1c881583c655e6e08d52d9f148a3 /apps/gui | |
parent | 32e074584857a2e107a91d51c2531d67747331fd (diff) | |
download | rockbox-1d893a05c6b3e73a8cda660d4a4cbc209c0fe0d9.tar.gz rockbox-1d893a05c6b3e73a8cda660d4a4cbc209c0fe0d9.zip |
pitchscreen: Fix compile on HWCODEC players.
Change-Id: Iffb7018e935e017baf84ddc8e742270f82b996ab
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/pitchscreen.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; | |||
162 | * | | | | <-- Two "OK" for exit on the sides for touchscreen | 162 | * | | | | <-- Two "OK" for exit on the sides for touchscreen |
163 | * |------------------------| | 163 | * |------------------------| |
164 | * | 164 | * |
165 | * | 165 | * |
166 | */ | 166 | */ |
167 | 167 | ||
168 | static void speak_pitch_mode(bool enqueue) | 168 | static void speak_pitch_mode(bool enqueue) |
169 | { | 169 | { |
170 | #if CONFIG_CODEC == SWCODEC | ||
170 | bool timestretch_mode = global_settings.pitch_mode_timestretch && dsp_timestretch_available(); | 171 | bool timestretch_mode = global_settings.pitch_mode_timestretch && dsp_timestretch_available(); |
171 | if (timestretch_mode) | 172 | if (timestretch_mode) |
172 | talk_id(VOICE_PITCH_TIMESTRETCH_MODE, enqueue); | 173 | talk_id(VOICE_PITCH_TIMESTRETCH_MODE, enqueue); |
174 | #else | ||
175 | #define timestretch_mode 0 | ||
176 | #endif | ||
173 | if (global_settings.pitch_mode_semitone) | 177 | if (global_settings.pitch_mode_semitone) |
174 | talk_id(VOICE_PITCH_SEMITONE_MODE, timestretch_mode ? true : enqueue); | 178 | talk_id(VOICE_PITCH_SEMITONE_MODE, timestretch_mode ? true : enqueue); |
175 | else | 179 | else |