Set volume level

Here is how you can set volume level for a specific sound type. In this example media volume is set. When setting the volume level you cannot exceed the maximum volume level supported. PRIVILEGES NEEDED: http://tizen.org/privilege/volume.set
#include <sound_manager.h>

//Setting the media sound level to 7.
if (sound_manager_set_volume(SOUND_TYPE_MEDIA, 7) == SOUND_MANAGER_ERROR_NONE)
{
    LOGI("Media volume set to 7.");
}
else
{
    LOGE("Error occurred.");
}

Responses

0 Replies