1
0
Fork 0
forked from len0rd/rockbox

pitchscreen: Fix compile on HWCODEC players.

Change-Id: Iffb7018e935e017baf84ddc8e742270f82b996ab
This commit is contained in:
Solomon Peachy 2019-02-03 21:54:25 -05:00
parent 32e0745848
commit 1d893a05c6

View file

@ -167,9 +167,13 @@ static bool at_limit = false;
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