audiomixer_adjust_input_level()

Adjust an input channel's gain.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

channel

The input channel to adjust the gain for.

level

The amount to adjust the channel's gain. Final level will not exceed the range of 0.0 to 100.0.

Library:

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

Description:

The audiomixer_adjust_input_level() function adjusts the gain of the specified input channel by the specified amount. This function can only be used for audio devices that have full volume control.

Returns:

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