iOS. Executing a part of TurnSound functionality even if TurnSound is not available.

This commit is contained in:
Vladimir Byko-Ianko 2015-10-20 17:50:24 +03:00
parent 9e5282d698
commit abf2bf8c39

View file

@ -128,9 +128,6 @@ extern NSString * const kMwmTextToSpeechDisable = @"MWMTEXTTOSPEECH_DISABLE";
- (void)playTurnNotifications
{
if (![self isValid])
return;
Framework & frm = GetFramework();
if (!frm.IsRoutingActive())
return;
@ -138,6 +135,9 @@ extern NSString * const kMwmTextToSpeechDisable = @"MWMTEXTTOSPEECH_DISABLE";
vector<string> notifications;
frm.GenerateTurnSound(notifications);
if (![self isValid])
return;
for (auto const & text : notifications)
[self speakOneString:@(text.c_str())];
}