forked from len0rd/rockbox
pitchscreen: Fix compile on HWCODEC players.
Change-Id: Iffb7018e935e017baf84ddc8e742270f82b996ab
This commit is contained in:
parent
32e0745848
commit
1d893a05c6
1 changed files with 5 additions and 1 deletions
|
|
@ -162,14 +162,18 @@ static bool at_limit = false;
|
||||||
* | | | | <-- Two "OK" for exit on the sides for touchscreen
|
* | | | | <-- Two "OK" for exit on the sides for touchscreen
|
||||||
* |------------------------|
|
* |------------------------|
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void speak_pitch_mode(bool enqueue)
|
static void speak_pitch_mode(bool enqueue)
|
||||||
{
|
{
|
||||||
|
#if CONFIG_CODEC == SWCODEC
|
||||||
bool timestretch_mode = global_settings.pitch_mode_timestretch && dsp_timestretch_available();
|
bool timestretch_mode = global_settings.pitch_mode_timestretch && dsp_timestretch_available();
|
||||||
if (timestretch_mode)
|
if (timestretch_mode)
|
||||||
talk_id(VOICE_PITCH_TIMESTRETCH_MODE, enqueue);
|
talk_id(VOICE_PITCH_TIMESTRETCH_MODE, enqueue);
|
||||||
|
#else
|
||||||
|
#define timestretch_mode 0
|
||||||
|
#endif
|
||||||
if (global_settings.pitch_mode_semitone)
|
if (global_settings.pitch_mode_semitone)
|
||||||
talk_id(VOICE_PITCH_SEMITONE_MODE, timestretch_mode ? true : enqueue);
|
talk_id(VOICE_PITCH_SEMITONE_MODE, timestretch_mode ? true : enqueue);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue