audiomixer_get_input_level()

Get an input channel's gain.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

channel

The input channel to get the gain for.

level

The input channel's current gain. 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_input_level() function gets the gain of the specified input 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.