summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakamitsu Yoshii <tyoshii@xevo.com>2018-02-08 15:41:41 +0900
committerTakamitsu Yoshii <tyoshii@xevo.com>2018-02-09 10:13:08 +0900
commit8e4ae2f611dd33c558064b3eef7b6d560f090f36 (patch)
tree4df9956f5a181d16d8ada3593be0e5f6be41bb95
parentb8a7ef6396e59447b7de48f4f846053a0947913c (diff)
downloadsdl_ios-8e4ae2f611dd33c558064b3eef7b6d560f090f36.tar.gz
notify audio streaming state when SDL mangaer become Ready
-rw-r--r--SmartDeviceLink/SDLLifecycleManager.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLLifecycleManager.m b/SmartDeviceLink/SDLLifecycleManager.m
index ece11b83f..b5b8cdc76 100644
--- a/SmartDeviceLink/SDLLifecycleManager.m
+++ b/SmartDeviceLink/SDLLifecycleManager.m
@@ -331,6 +331,11 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready";
// Send the hmi level going from NONE to whatever we're at now (could still be NONE)
[self.delegate hmiLevel:SDLHMILevelNone didChangeToLevel:self.hmiLevel];
+
+ // Send the audio streaming state going from NOT_AUDIBLE to whatever we're at now (could still be NOT_AUDIBLE)
+ if ([self.delegate respondsToSelector:@selector(audioStreamingState:didChangeToState:)]) {
+ [self.delegate audioStreamingState:SDLAudioStreamingStateNotAudible didChangeToState:self.audioStreamingState];
+ }
}
- (void)didEnterStateUnregistering {
@@ -485,6 +490,7 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready";
self.systemContext = hmiStatusNotification.systemContext;
SDLLogD(@"HMI level changed from %@ to %@", oldHMILevel, self.hmiLevel);
+ SDLLogD(@"Audio streaming state changed from %@ to %@", oldStreamingState, self.audioStreamingState);
if ([self.lifecycleStateMachine isCurrentState:SDLLifecycleStateSettingUpHMI]) {
[self.lifecycleStateMachine transitionToState:SDLLifecycleStateReady];