audio_manager_adjust_output_level()

Adjust the audio output level of a specified device.

Synopsis:

#include <audio/audio_manager_volume.h>
 
int audio_manager_adjust_output_level(audio_manager_device_t dev, double level)

Since:

BlackBerry 10.0.0

Arguments:

dev

The audio device that the new output level is applied to.

level

The change in level of the audio output is provided as a percentage value. For example, value of 10.00 represents a 10% increase, while a value of -10.00 represents 10% decrease.

Library:

libaudio_manager (For the qcc command, use the -l audio_manager option to link against this library)

Description:

The audio_manager_adjust_output_level() function adjusts the audio output level of the specified device by a certain percentage value. A negative value means to decrease the output level, while a non-negative value means to increase the output level for. For example, when you set level to a value of 10.00, it represents a 10% increase to the existing output level. If you set the value to -10.00, it represents 10% decrease to the output level.

Returns:

EOK upon success, a negative errno upon failure. The errno values are available in the errno.h file.