AIROC™ BTSDK v4.9 - Documentation | ||||
Macros | |
#define | OPUS_SET_GAIN(x) |
Configures decoder gain adjustment. More... | |
#define | OPUS_GET_GAIN(x) |
Gets the decoder's configured gain adjustment. More... | |
#define OPUS_GET_GAIN | ( | x | ) |
Gets the decoder's configured gain adjustment.
[out] | x | opus_int32 * : Amount to scale PCM signal by in Q8 dB units. |
#define OPUS_SET_GAIN | ( | x | ) |
Configures decoder gain adjustment.
Scales the decoded output by a factor specified in Q8 dB units. This has a maximum range of -32768 to 32767 inclusive, and returns OPUS_BAD_ARG otherwise. The default is zero indicating no adjustment. This setting survives decoder reset.
gain = pow(10, x/(20.0*256))
[in] | x | opus_int32 : Amount to scale PCM signal by in Q8 dB units. |