audiomixer_set_input_level()

Set an input channel's gain.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

channel

The input channel to set the gain for.

level

The new gain for the input 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_input_level() function sets the gain of the specified input channel to the specified level. This function can only be used for audio devices that have full volume control.

Returns:

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