From: aravind.gara Date: Thu, 12 Oct 2017 05:46:17 +0000 (+0900) Subject: Remove unwanted code X-Git-Tag: submit/tizen/20171106.073235~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F155106%2F2;p=platform%2Fcore%2Fapi%2Fsound-pool.git Remove unwanted code [Version] 0.0.8 [Issue Type] Cleanup Change-Id: I5aa2adcfc921bcc130fe372e271b9f7b52559ee8 Signed-off-by: aravind.gara --- diff --git a/include/internal/stream.h b/include/internal/stream.h index 43e0c34..26437b6 100644 --- a/include/internal/stream.h +++ b/include/internal/stream.h @@ -74,13 +74,11 @@ sound_pool_error_e _sound_stream_suspend(sound_stream_t *stream); 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); @@ -94,8 +92,6 @@ sound_pool_error_e _sound_stream_get_state(sound_stream_t *stream, 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); diff --git a/packaging/capi-media-sound-pool.spec b/packaging/capi-media-sound-pool.spec index 759644d..23e0c85 100644 --- a/packaging/capi-media-sound-pool.spec +++ b/packaging/capi-media-sound-pool.spec @@ -1,5 +1,5 @@ Name: capi-media-sound-pool -Version: 0.0.7 +Version: 0.0.8 Summary: Tizen Sound Pool module Release: 0 Group: Multimedia/Framework diff --git a/src/stream.c b/src/stream.c index 3d879c8..c088476 100644 --- a/src/stream.c +++ b/src/stream.c @@ -184,7 +184,7 @@ static sound_pool_error_e __sound_stream_init(sound_stream_t *stream, "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(); @@ -454,18 +454,6 @@ sound_pool_error_e _sound_stream_set_loop(sound_stream_t *stream, unsigned loop) 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(); @@ -504,18 +492,6 @@ sound_pool_error_e _sound_stream_set_mute(sound_stream_t *stream, gboolean mute) 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(); @@ -573,7 +549,7 @@ sound_pool_error_e _sound_stream_set_priority(sound_stream_t *stream, } 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); @@ -621,18 +597,6 @@ sound_pool_error_e _sound_stream_set_callback(sound_stream_t *stream, 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) {