Change-Id: I4bd833dd98802e44251191ddea51b8e38582d810
if(mIsAccessibilityTtsEnabled)
{
Dali::SoundPlayer soundPlayer = Dali::SoundPlayer::Get();
if(mIsAccessibilityTtsEnabled)
{
Dali::SoundPlayer soundPlayer = Dali::SoundPlayer::Get();
- soundPlayer.PlaySound(FOCUS_SOUND_FILE);
+ if(soundPlayer)
+ {
+ soundPlayer.PlaySound(FOCUS_SOUND_FILE);
+ }
// Play the accessibility attributes with the TTS player.
Dali::TtsPlayer player = Dali::TtsPlayer::Get(Dali::TtsPlayer::SCREEN_READER);
// Play the accessibility attributes with the TTS player.
Dali::TtsPlayer player = Dali::TtsPlayer::Get(Dali::TtsPlayer::SCREEN_READER);
{
// play sound & skip moving once
Dali::SoundPlayer soundPlayer = Dali::SoundPlayer::Get();
{
// play sound & skip moving once
Dali::SoundPlayer soundPlayer = Dali::SoundPlayer::Get();
- soundPlayer.PlaySound(FOCUS_CHAIN_END_SOUND_FILE);
+ if(soundPlayer)
+ {
+ soundPlayer.PlaySound(FOCUS_CHAIN_END_SOUND_FILE);
+ }
mIsEndcapFeedbackPlayed = true;
return true;
mIsEndcapFeedbackPlayed = true;
return true;