* <td>This function must be called after player_create()</td>
* </tr>
* <tr>
- * <td>player_set_audio_policy_info()</td>
+ * <td>player_set_sound_stream_info()</td>
* <td>IDLE</td>
* <td>This function must be called after player_create()</td>
* </tr>
int player_get_volume(player_h player, float *left, float *right);
/**
- * @deprecated Deprecated since 3.0. Use player_set_audio_policy_info() instead.
+ * @deprecated Deprecated since 3.0. Use player_set_sound_stream_info() instead.
* @brief Sets the player's volume type.
* @since_tizen 2.3
* @remarks The default sound type of the player is #SOUND_TYPE_MEDIA.
int player_get_volume(player_h player, float *left, float *right);
/**
- * @deprecated Deprecated since 3.0. Use player_set_audio_policy_info() instead.
+ * @deprecated Deprecated since 3.0. Use player_set_sound_stream_info() instead.
* @brief Sets the player's volume type.
* @since_tizen 2.3.1
* @remarks The default sound type of the player is #SOUND_TYPE_MEDIA.
char *ret_buf = NULL;
LOGD("ENTER");
- LOGW("DEPRECATION WARNING: player_set_sound_type() is deprecated and will be removed from next release. Use player_set_audio_policy_info() instead.");
+ LOGW("DEPRECATION WARNING: player_set_sound_type() is deprecated and will be removed from next release. Use player_set_sound_stream_info() instead.");
player_msg_send1(api, pc, ret_buf, ret, INT, type);
g_free(ret_buf);
{
PLAYER_INSTANCE_CHECK(player);
- muse_player_api_e api = MUSE_PLAYER_API_SET_AUDIO_POLICY_INFO;
+ muse_player_api_e api = MUSE_PLAYER_API_SET_SOUND_STREAM_INFO;
player_cli_s *pc = (player_cli_s *) player;
char *ret_buf = NULL;
{
PLAYER_INSTANCE_CHECK(player);
- muse_player_api_e api = MUSE_PLAYER_API_SET_AUDIO_POLICY_INFO;
+ muse_player_api_e api = MUSE_PLAYER_API_SET_SOUND_STREAM_INFO;
player_cli_s *pc = (player_cli_s *) player;
char *ret_buf = NULL;
stream_info, NATIVE_API_PLAYER, &is_available), (char *)__FUNCTION__);
if (ret == PLAYER_ERROR_NONE) {
- if (is_available == false)
+ if (is_available == false) {
ret = PLAYER_ERROR_FEATURE_NOT_SUPPORTED_ON_DEVICE;
- else {
+ } else {
char *stream_type = NULL;
int stream_index = 0;
ret = sound_manager_get_type_from_stream_information(stream_info, &stream_type);
}
}
- if (player_set_audio_policy_info(g_player[0], g_stream_info_h) != PLAYER_ERROR_NONE)
+ if (player_set_sound_stream_info(g_player[0], g_stream_info_h) != PLAYER_ERROR_NONE)
g_print("failed to set sound stream information(%p)\n", g_stream_info_h);
else
g_print("set stream information(%p) success", g_stream_info_h);