sound_pool_error_e _sound_stream_stop(sound_stream_t *stream);
sound_pool_error_e _sound_stream_set_loop(sound_stream_t *stream, unsigned loop);
-sound_pool_error_e _sound_stream_get_loop(sound_stream_t *stream, unsigned *loop);
sound_pool_error_e _sound_stream_set_volume(sound_stream_t *stream, float volume);
sound_pool_error_e _sound_stream_get_volume(sound_stream_t *stream, float *volume);
sound_pool_error_e _sound_stream_set_mute(sound_stream_t *stream, gboolean mute);
-sound_pool_error_e _sound_stream_get_mute(sound_stream_t *stream, gboolean *mute);
sound_pool_error_e _sound_stream_set_priority(sound_stream_t *stream, unsigned rank);
sound_pool_error_e _sound_stream_get_priority(sound_stream_t *stream, unsigned *rank);
sound_pool_error_e _sound_stream_set_callback(sound_stream_t *stream,
sound_pool_stream_state_changed_cb callback, void *data);
-sound_pool_error_e _sound_stream_unset_callback(sound_stream_t *stream);
-
sound_pool_error_e _sound_stream_send_event(sound_stream_t *stream,
sound_pool_stream_state_e state);
"Error occurred when setting sound stream priority parameter");
ret = _sound_stream_set_priority_policy(stream, priority_policy);
- SP_RETVM_IF (ret != SOUND_POOL_ERROR_NONE, ret,
+ SP_RETVM_IF(ret != SOUND_POOL_ERROR_NONE, ret,
"Error occurred when setting sound stream priority_policy parameter");
SP_DEBUG_FLEAVE();
return SOUND_POOL_ERROR_NONE;
}
-sound_pool_error_e _sound_stream_get_loop(sound_stream_t *stream, unsigned *loop)
-{
- SP_DEBUG_FENTER();
- SP_INST_CHECK(stream, SOUND_POOL_ERROR_INVALID_PARAMETER);
- SP_INST_CHECK(loop, SOUND_POOL_ERROR_INVALID_PARAMETER);
-
- *loop = stream->loop;
-
- SP_DEBUG_FLEAVE();
- return SOUND_POOL_ERROR_NONE;
-}
-
sound_pool_error_e _sound_stream_set_volume(sound_stream_t *stream, float volume)
{
SP_DEBUG_FENTER();
return SOUND_POOL_ERROR_NONE;
}
-sound_pool_error_e _sound_stream_get_mute(sound_stream_t *stream, gboolean *mute)
-{
- SP_DEBUG_FENTER();
- SP_INST_CHECK(stream, SOUND_POOL_ERROR_INVALID_PARAMETER);
- SP_INST_CHECK(mute, SOUND_POOL_ERROR_INVALID_PARAMETER);
-
- *mute = stream->mute;
-
- SP_DEBUG_FLEAVE();
- return SOUND_POOL_ERROR_NONE;
-}
-
sound_pool_error_e _sound_stream_get_volume(sound_stream_t *stream, float *volume)
{
SP_DEBUG_FENTER();
}
sound_pool_error_e _sound_stream_set_priority_policy(sound_stream_t *stream,
- sound_pool_stream_priority_policy_e priority_policy)
+ sound_pool_stream_priority_policy_e priority_policy)
{
SP_DEBUG_FENTER();
SP_INST_CHECK(stream, SOUND_POOL_ERROR_INVALID_PARAMETER);
return SOUND_POOL_ERROR_NONE;
}
-sound_pool_error_e _sound_stream_unset_callback(sound_stream_t *stream)
-{
- SP_DEBUG_FENTER();
- SP_INST_CHECK(stream, SOUND_POOL_ERROR_INVALID_PARAMETER);
-
- stream->state_cb_info.callback = NULL;
- stream->state_cb_info.user_data = NULL;
-
- SP_DEBUG_FLEAVE();
- return SOUND_POOL_ERROR_NONE;
-}
-
sound_pool_error_e _sound_pool_get_stream_by_id(sound_pool_t *pool, unsigned id,
sound_stream_t **stream)
{