From: Seungbae Shin Date: Thu, 4 Oct 2018 10:47:40 +0000 (+0900) Subject: Remove unnecessary backward compatibility code X-Git-Tag: submit/tizen/20181106.060307^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ca5297df313c2040e98dd6b862b92fc01bba910;p=platform%2Fcore%2Fapi%2Fsound-pool.git Remove unnecessary backward compatibility code [Version] 0.0.15 [Issue Type] Cleanup Change-Id: If666779fc130de997b641cda27647c300bb5637a --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 519bb7e..0555429 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ SET(PREFIX ${CMAKE_INSTALL_PREFIX}) SET(INC_DIR include) INCLUDE_DIRECTORIES(${INC_DIR}) -SET(dependents "dlog glib-2.0 openal mm-session") +SET(dependents "dlog glib-2.0 openal") IF(DEFINED ENV{ENABLE_ALURE}) SET(dependents "${dependents} alure") diff --git a/include/internal/soundpool.h b/include/internal/soundpool.h index b1de337..e333f28 100644 --- a/include/internal/soundpool.h +++ b/include/internal/soundpool.h @@ -79,8 +79,6 @@ sound_pool_error_e _sound_pool_set_callback(sound_pool_t *pool, sound_pool_error_e _sound_pool_unset_callback(sound_pool_t *pool); -void _sound_pool_disable_session_backward_compatibility(void); - #ifdef __cplusplus } #endif /* __cplusplus */ diff --git a/packaging/capi-media-sound-pool.spec b/packaging/capi-media-sound-pool.spec index 78a1304..3b72a41 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.14 +Version: 0.0.15 Summary: Tizen Sound Pool module Release: 0 Group: Multimedia/Framework @@ -13,8 +13,6 @@ BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(openal) #BuildRequires: pkgconfig(freealut) BuildRequires: pkgconfig(alure) -BuildRequires: pkgconfig(mm-session) -BuildRequires: pkgconfig(mm-sound) %description Tizen Sound Pool Module allowing sounds playing for audio resources. diff --git a/src/sound_pool.c b/src/sound_pool.c index b2d1c7e..61b5d8a 100644 --- a/src/sound_pool.c +++ b/src/sound_pool.c @@ -48,8 +48,6 @@ sound_pool_error_e sound_pool_create(sound_pool_h *pool) sound_pool_t *_pool = NULL; sound_pool_error_e ret; - _sound_pool_disable_session_backward_compatibility(); - ret = _sound_pool_create(&_pool); SP_RETVM_IF(ret != SOUND_POOL_ERROR_NONE, ret, "Error while creating sound pool instance."); diff --git a/src/soundpool.c b/src/soundpool.c index 2eaaa57..7821645 100644 --- a/src/soundpool.c +++ b/src/soundpool.c @@ -19,9 +19,6 @@ * @brief This file include implementation of protected API for the SoundPool. */ #include -#include -#include -#include #include "internal/soundpool.h" @@ -359,20 +356,3 @@ sound_pool_error_e _sound_pool_unset_callback(sound_pool_t *pool) SP_DEBUG_FLEAVE(); return SOUND_POOL_ERROR_NONE; } - -void _sound_pool_disable_session_backward_compatibility(void) -{ - int mm_ret = MM_ERROR_NONE; - int session_type = 0; - int session_options = 0; - - /* read session information */ - mm_ret = _mm_session_util_read_information(-1, &session_type, &session_options); - if (mm_ret == MM_ERROR_NONE) { - /* Session exists */ - SP_INFO(" Session exists:session_type %d, session_option %d", session_type, session_options); - } - - if ((_mm_session_util_write_information((int)getpid(), MM_SESSION_TYPE_REPLACED_BY_STREAM, 0))) - SP_INFO("failed to _mm_session_util_write_information for MM_SESSION_TYPE_REPLACED_BY_STREAM"); -}