audiomixer_get_output_level()

Get an output channel's volume.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

channel

The output channel to get the volume for.

level

The output channel's current volume. This value is 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_get_output_level() function gets the volume of the specified output channel. This function can only be used for audio devices that have full volume control.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.