/**
* @brief Function to be called on sound stream focus change.
*/
- static void StreamFocusChangedCb(sound_stream_info_h streamInfo,
- sound_stream_focus_change_reason_e reason,
+ static void StreamFocusChangedCb(sound_stream_info_h stream_info,
+ sound_stream_focus_mask_e focusMask,
+ sound_stream_focus_state_e focusState,
+ sound_stream_focus_change_reason_e reason, int sound_behavior,
const char *extraInfo, void *userData);
/**
return false;
}
- ret = sound_manager_acquire_focus(stream_info_, SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
+ ret = sound_manager_acquire_focus(stream_info_, SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
if (ret != SOUND_MANAGER_ERROR_NONE) {
PlayerRelease();
ERR("sound_manager_acquire_focus failed[%d]: %s", ret, get_error_message(ret));
}
}
-void SoundManager::StreamFocusChangedCb(sound_stream_info_h streamInfo,
- sound_stream_focus_change_reason_e reason, const char *extraInfo, void *userData)
+void SoundManager::StreamFocusChangedCb(sound_stream_info_h stream_info, sound_stream_focus_mask_e focusMask,
+ sound_stream_focus_state_e focusState, sound_stream_focus_change_reason_e reason, int sound_behavior,
+ const char *extraInfo, void *userData)
{
switch (GetStreamFocusState()) {
case SOUND_STREAM_FOCUS_STATE_ACQUIRED:
}
if (stream_info_) {
- ret = sound_manager_release_focus(stream_info_, SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
+ ret = sound_manager_release_focus(stream_info_, SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
if (ret != SOUND_MANAGER_ERROR_NONE)
ERR("sound_manager_release_focus failed[%d]: %s", ret, get_error_message(ret));
}