Home
last modified time | relevance | path

Searched refs:mic_level (Results 1 – 5 of 5) sorted by relevance

/external/webrtc/webrtc/tools/agc/
Dtest_utils.cc47 void SimulateMic(int gain_range_db, int mic_level, int last_mic_level, in SimulateMic() argument
49 assert(mic_level >= 0 && mic_level <= 255); in SimulateMic()
51 ApplyGain(MicLevel2Gain(gain_range_db, mic_level), in SimulateMic()
56 void SimulateMic(int gain_map[255], int mic_level, int last_mic_level, in SimulateMic() argument
58 assert(mic_level >= 0 && mic_level <= 255); in SimulateMic()
60 ApplyGain(gain_map[mic_level], gain_map[last_mic_level], frame); in SimulateMic()
Dtest_utils.h21 void SimulateMic(int gain_range_db, int mic_level, int last_mic_level,
23 void SimulateMic(int gain_map[255], int mic_level, int last_mic_level,
/external/webrtc/webrtc/modules/audio_processing/agc/
Dagc_unittest.cc76 int mic_level = agc_.MicLevel(); in RunAgc() local
77 if (mic_level != mic_level_) { in RunAgc()
78 printf("mic_level=%d\n", mic_level); in RunAgc()
79 checker_.LevelChanged(i, mic_level); in RunAgc()
81 mic_level_ = mic_level; in RunAgc()
Dagc_manager_direct.cc59 int ClampLevel(int mic_level) { in ClampLevel() argument
60 return std::min(std::max(kMinMicLevel, mic_level), kMaxMicLevel); in ClampLevel()
/external/webrtc/webrtc/modules/audio_processing/test/
Dprocess_test.cc125 static void SimulateMic(int mic_level, AudioFrame* frame) { in SimulateMic() argument
126 mic_level = std::min(std::max(mic_level, 0), 255); in SimulateMic()
127 float mic_gain = MicLevel2Gain(mic_level); in SimulateMic()