ret = sound_manager_get_focus_state(s_info.stream_info, &state_for_playback, NULL);
if (state_for_playback == SOUND_STREAM_FOCUS_STATE_ACQUIRED) {
- ret = sound_manager_release_focus(s_info.stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
+ ret = sound_manager_release_focus(s_info.stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
if (ret != SOUND_MANAGER_ERROR_NONE) {
ERR("sound_manager_release_focus() get failed : %d", ret);
}
}
-static void _quickpanel_sound_stream_focus_state_changed_cb(sound_stream_info_h stream_info, sound_stream_focus_change_reason_e reason_for_change, const char *additional_info, void *user_data)
+static void _quickpanel_sound_stream_focus_state_changed_cb(sound_stream_info_h stream_info, sound_stream_focus_mask_e focus_mask,
+ sound_stream_focus_state_e focus_state, sound_stream_focus_change_reason_e reason_for_change,
+ int sound_behavior, const char *additional_info, void *user_data)
{
DBG("_quickpanel_sound_stream_focus_state_changed_cb called, reason_for_change [%d], additional_info [%s]", reason_for_change, additional_info);
return sndRet;
}
- sndRet = sound_manager_acquire_focus(*stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
+ sndRet = sound_manager_acquire_focus(*stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
if (sndRet != SOUND_MANAGER_ERROR_NONE) {
ERR("sound_manager_acquire_focus() get failed : %d", ret);
return sndRet;