Home
last modified time | relevance | path

Searched refs:micVol (Results 1 – 3 of 3) sorted by relevance

/external/webrtc/webrtc/modules/audio_processing/agc/legacy/
Danalog_agc.c139 if (stt->micVol > stt->maxAnalog) in WebRtcAgc_AddMic()
146 tmp16 = (int16_t)(stt->micVol - stt->maxAnalog); in WebRtcAgc_AddMic()
349 gainIdx = stt->micVol; in WebRtcAgc_VirtualMic()
350 if (stt->micVol > stt->maxAnalog) in WebRtcAgc_VirtualMic()
358 stt->micVol = 127; in WebRtcAgc_VirtualMic()
541 stt->micVol = *inMicLevel; in WebRtcAgc_ZeroCtrl()
549 stt->micVol); in WebRtcAgc_ZeroCtrl()
686 stt->micVol = inMicLevelTmp; in WebRtcAgc_ProcessAnalog()
690 if ((inMicLevelTmp == stt->maxAnalog) && (stt->micVol > stt->maxAnalog)) in WebRtcAgc_ProcessAnalog()
692 inMicLevelTmp = stt->micVol; in WebRtcAgc_ProcessAnalog()
[all …]
Danalog_agc.h106 int32_t micVol; // Remember volume between frames member
/external/webrtc/webrtc/voice_engine/
Dvoe_volume_control_impl.cc130 uint32_t micVol(0); in SetMicVolume() local
145 if (_shared->audio_device()->MicrophoneVolume(&micVol) != 0) { in SetMicVolume()
150 if (micVol >= maxVol) in SetMicVolume()
155 micVol = (uint32_t)((volume * maxVol + (int)(kMaxVolumeLevel / 2)) / in SetMicVolume()
159 if (_shared->audio_device()->SetMicrophoneVolume(micVol) != 0) { in SetMicVolume()
173 uint32_t micVol(0); in GetMicVolume() local
176 if (_shared->audio_device()->MicrophoneVolume(&micVol) != 0) { in GetMicVolume()
188 if (micVol < maxVol) { in GetMicVolume()
191 (uint32_t)((micVol * kMaxVolumeLevel + (int)(maxVol / 2)) / (maxVol)); in GetMicVolume()