static void __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_behaviors,
const char *extra_info,
void *user_data);
static void __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_behaviors,
const char *extra_info,
void *user_data)
{
sound_manager_get_focus_state(sound_stream_info_to_set, &ssfs, NULL);
if (ssfs == SOUND_STREAM_FOCUS_STATE_RELEASED ) {
err = sound_manager_acquire_focus(sound_stream_info_to_set,
- SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
+ SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
if (err != SOUND_MANAGER_ERROR_NONE) {
SETTING_TRACE_ERROR("Could not acquire focus: [%s]", get_error_message(err));
player_unprepare(ad->mp_player);
SETTING_TRACE_ERROR("error to set audio policy [%s]", get_error_message(err));
if (sound_type != SOUND_TYPE_NOTIFICATION)
sound_manager_release_focus(sound_stream_info_to_set,
- SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
+ SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
player_unprepare(ad->mp_player);
return false;
}
get_error_message(err));
if (sound_type != SOUND_TYPE_NOTIFICATION)
sound_manager_release_focus(sound_stream_info_to_set,
- SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
+ SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
player_unprepare(ad->mp_player);
return false;
}
get_error_message(err));
if (sound_type != SOUND_TYPE_NOTIFICATION)
sound_manager_release_focus(sound_stream_info_to_set,
- SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
+ SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
player_unprepare(ad->mp_player);
return false;
}
SETTING_TRACE_ERROR("player_prepare() error %d", err);
if (sound_type != SOUND_TYPE_NOTIFICATION)
sound_manager_release_focus(sound_stream_info_to_set,
- SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
+ SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
player_unprepare(ad->mp_player);
return false;
}
SETTING_TRACE_ERROR("state of player is invalid %d", err);
if (sound_type != SOUND_TYPE_NOTIFICATION)
sound_manager_release_focus(sound_stream_info_to_set,
- SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
+ SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
player_unprepare(ad->mp_player);
return false;
}
player_unset_completed_cb(ad->mp_player);
if (sound_type != SOUND_TYPE_NOTIFICATION)
sound_manager_release_focus(sound_stream_info_to_set,
- SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
+ SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
player_unprepare(ad->mp_player);
return false;
}
sound_manager_get_focus_state(ad->ringtone_sound_stream_info, &ssfs, NULL);
if (ssfs == SOUND_STREAM_FOCUS_STATE_ACQUIRED)
sound_manager_release_focus(ad->ringtone_sound_stream_info,
- SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
+ SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
sound_manager_get_focus_state(ad->media_sound_stream_info, &ssfs, NULL);
if (ssfs == SOUND_STREAM_FOCUS_STATE_ACQUIRED)
sound_manager_release_focus(ad->media_sound_stream_info,
- SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
+ SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
player_get_state(ad->mp_player, &player_state);