audiomixer_adjust_output_level()

Adjust an output channel's volume.

Synopsis:

#include <bps/audiomixer.h>
 
BPS_API int audiomixer_adjust_output_level(audiomixer_output_t channel,
                                           float level)

Since:

BlackBerry 10.0.0

Arguments:

channel

The output channel to adjust the volume for.

level

The amount to adjust the channel's volume. Final level will not exceed the range of 0.0 to 100.0.

Library:

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

Description:

The audiomixer_adjust_output_level() function adjusts the volume of the specified output channel by the specified amount. This function can only be used for audio devices that have full volume control.

Returns:

BPS_SUCCESS if the volume was adjusted successfully, BPS_FAILURE with errno set otherwise.