audiomixer_event_get_output_level()

Get an output channel's volume from an AUDIOMIXER_INFO event.

Synopsis:

#include <bps/audiomixer.h>
 
BPS_API float audiomixer_event_get_output_level(bps_event_t *event,
                                                audiomixer_output_t channel)

Since:

BlackBerry 10.0.0

Arguments:

event

The AUDIOMIXER_INFO event to extract the volume from.

channel

The output channel to get the volume for.

Library:

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

Description:

The audiomixer_event_get_output_level() function extracts the volume of the specified output channel from an AUDIOMIXER_INFO event. This function can only be used for audio devices that have full volume control.

Returns:

The output channel's volume. This value is between 0.0 and 100.0.