Removed warnings/Typo mistake rectified. 21/148221/6 accepted/tizen/unified/20170913.071305 submit/tizen/20170912.020528
authoraravind.gara <aravind.gara@samsung.com>
Thu, 7 Sep 2017 06:46:16 +0000 (15:46 +0900)
committeraravind.gara <aravind.gara@samsung.com>
Mon, 11 Sep 2017 10:27:58 +0000 (19:27 +0900)
Modified Maximum sound pool count.

[Version] 0.0.6
[Issue Type] Enhancement

Change-Id: I34e5ac3272bce2dd7caa7d75c26dd34b871a317c
Signed-off-by: aravind.gara <aravind.gara@samsung.com>
include/internal/soundpool.h
include/sound_pool.h
packaging/capi-media-sound-pool.spec

index 12fba91..fc987ce 100644 (file)
@@ -56,7 +56,7 @@ typedef struct sound_pool_s {
 } sound_pool_t;
 
 /* Max amount of sound pools which could be created. */
-#define SOUND_POOL_MAX_POOLS_AMOUNT 32U
+#define SOUND_POOL_MAX_POOLS_AMOUNT 8U
 
 sound_pool_error_e _sound_pool_create(sound_pool_t **pool);
 
index bb00208..af40cd2 100644 (file)
@@ -83,9 +83,10 @@ typedef void (*sound_pool_stream_state_changed_cb) (sound_pool_h pool,
 /**
  * @brief Creates a sound pool instance that can be used for sound sources
  *        loading/unloading.
- * @details Up to 32 sound pools can be created. Several pools can be active
+ * @details Up to 8 sound pools can be created. Several pools can be active
  *          at the same time. Streams can be in playing state only when pool is
- *          active.
+ *          active. Memory is allocated for sound pool. User should aware that
+ *          creation of more number of pools means more memory is allocated.
  * @since_tizen 4.0
  * @remarks When pool has been created, pool state is
  *          #SOUND_POOL_STATE_INACTIVE. To activate the pool use
@@ -100,7 +101,7 @@ typedef void (*sound_pool_stream_state_changed_cb) (sound_pool_h pool,
  * @retval #SOUND_POOL_ERROR_OUT_OF_MEMORY
  *         Not enough memory to create sound pool
  * @retval #SOUND_POOL_ERROR_INVALID_OPERATION
- *         Maximal amount of sound pools is exceeded (maximum 32 pools allowed)
+ *         Maximal amount of sound pools is exceeded (maximum 8 pools allowed)
  *
  * @see sound_pool_destroy()
  */
@@ -394,7 +395,7 @@ int sound_pool_stream_play(sound_pool_h pool, const char *tag,
  * @brief Pauses a stream by @a id.
  * @details Sets stream state to #SOUND_POOL_STREAM_STATE_PAUSED.
  * @since_tizen 4.0
- * @remarks Stream state has to be #SOUND_POOL_STATE_PLAYING
+ * @remarks Stream state has to be #SOUND_POOL_STREAM_STATE_PLAYING.
  *
  * @param[in]  pool    The sound pool handle
  * @param[in]  id      Unique stream identifier
@@ -421,7 +422,7 @@ int sound_pool_stream_pause(sound_pool_h pool, unsigned id);
  * @brief Resumes a stream by @a id.
  * @details Sets stream state to #SOUND_POOL_STREAM_STATE_PLAYING.
  * @since_tizen 4.0
- * @remarks Stream state has to be #SOUND_POOL_STATE_PAUSED
+ * @remarks Stream state has to be #SOUND_POOL_STREAM_STATE_PAUSED.
  *
  * @param[in]  pool    The sound pool handle
  * @param[in]  id      Unique stream identifier
index 8b5fb47..8b97ab9 100644 (file)
@@ -1,5 +1,5 @@
 Name:       capi-media-sound-pool
-Version:    0.0.5
+Version:    0.0.6
 Summary:    Tizen Sound Pool module
 Release:    0
 Group:      Multimedia/Framework