audiomixer_set_output_level()

Set an output channel's volume.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

channel

The output channel to set the volume for.

level

The new volume for the output channel. This value must be between 0.0 and 100.0.

Library:

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

Description:

The audiomixer_set_output_level() function sets the volume of the specified output channel to the specified level. This function can only be used for audio devices that have full volume control.

Returns:

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