sound_pool_state_e old_state = pool->state;
pool->state = SOUND_POOL_STATE_ACTIVE;
- /* Generate array of all AlSources in pool */
- GPtrArray *streams = NULL;
+ _sound_stream_priority_update_playback(pool->mgr_priority);
+
if (g_hash_table_size(pool->streams) > 0) {
SP_RETVM_IF(!alcMakeContextCurrent(pool->al_context),
SOUND_POOL_ERROR_INVALID_OPERATION, "Can't set current context.");
SP_INFO("Resuming [%d] number of streams.", len);
}
- if (streams)
- g_ptr_array_free(streams, TRUE);
-
SP_INFO("Sound pool has been activated");
if (pool->state_cb_info.callback)
sound_pool_state_e old_state = pool->state;
pool->state = SOUND_POOL_STATE_INACTIVE;
- /* Generate array of all AlSources in pool */
- GPtrArray *streams = NULL;
if (g_hash_table_size(pool->streams) > 0) {
SP_RETVM_IF(!alcMakeContextCurrent(pool->al_context),
SOUND_POOL_ERROR_INVALID_OPERATION, "Can't set current context.");
SP_INFO("Suspending [%d] number of streams.", len);
}
- if (streams)
- g_ptr_array_free(streams, TRUE);
-
SP_INFO("Sound pool has been deactivated");
if (pool->state_cb_info.callback)