sound-manager API changed 05/101705/1 accepted/tizen/common/20161202.233158 accepted/tizen/ivi/20161207.025431 accepted/tizen/mobile/20161207.025244 accepted/tizen/tv/20161207.025328 accepted/tizen/wearable/20161207.025353 submit/tizen/20161202.035430
authoraravind.gara <aravind.gara@samsung.com>
Wed, 30 Nov 2016 01:53:08 +0000 (10:53 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 2 Dec 2016 04:43:10 +0000 (13:43 +0900)
Change-Id: I9dae573558e7b6830445628098e5553ed79154c9
Signed-off-by: aravind.gara <aravind.gara@samsung.com>
src/bt-syspopup-m.c

index 4d909f2..714f06c 100644 (file)
@@ -221,7 +221,7 @@ static void __bluetooth_player_free_job_cb(void *data)
 
        ret = sound_manager_get_focus_state(stream_info, &state_for_playback, NULL);
        if (state_for_playback == SOUND_STREAM_FOCUS_STATE_ACQUIRED) {
-               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)
                        BT_ERR("sound_manager_release_focus() get failed : %d", ret);
        }
@@ -267,7 +267,9 @@ __bluetooth_player_completed_cb(void *user_data)
 }
 
 static void
-__bluetooth_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)
+__bluetooth_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,
+                                    int sound_behavior, const char *extra_info, void *user_data)
 {
        retm_if(user_data == NULL, "invalid parameter");
        struct bt_popup_appdata *ad = user_data;
@@ -355,7 +357,7 @@ static int __bluetooth_notify_event(struct bt_popup_appdata *ad)
                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) {
                BT_ERR("sound_manager_acquire_focus() get failed : %d", ret);
                return sndRet;