1.MIC gain设置可以参照如下:
/****************************************************************************
DESCRIPTION
Set mic gain
*/
void AudioPluginSetMicGain(Source mic_source, bool digital, uint16 gain, bool preamp)
{
if (digital)
{
SourceConfigure(mic_source, STREAM_DIGITAL_MIC_INPUT_GAIN, gain);
}
else
{
SourceConfigure(mic_source, STREAM_CODEC_INPUT_GAIN, gain);
SourceConfigure(mic_source, STREAM_CODEC_MIC_INPUT_GAIN_ENABLE, preamp);
}
}
2. av_headset_av_volume.c中的函数,比如:static bool appAvApplyVolume(uint8 volume) |