Disable session backward compatibility with soundpool
[platform/core/api/sound-pool.git] / src / sound_pool.c
index 398da4e..b2d1c7e 100644 (file)
@@ -27,6 +27,7 @@
 #include "internal/stream.h"
 #include "internal/priority.h"
 
+
 /*
 * Public Implementation
 */
@@ -45,7 +46,11 @@ sound_pool_error_e sound_pool_create(sound_pool_h *pool)
        SP_INST_CHECK(pool, SOUND_POOL_ERROR_INVALID_PARAMETER);
 
        sound_pool_t *_pool = NULL;
-       sound_pool_error_e ret = _sound_pool_create(&_pool);
+       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.");
        SP_INST_CHECK(pool, SOUND_POOL_ERROR_INVALID_OPERATION);