Home
last modified time | relevance | path

Searched refs:gain_db (Results 1 – 10 of 10) sorted by relevance

/external/webrtc/modules/audio_processing/
Dgain_controller2.cc72 if (config.fixed_digital.gain_db != config_.fixed_digital.gain_db) { in ApplyConfig()
77 gain_applier_.SetGainFactor(DbToRatio(config_.fixed_digital.gain_db)); in ApplyConfig()
87 return config.fixed_digital.gain_db >= 0.f && in Validate()
88 config.fixed_digital.gain_db < 50.f && in Validate()
111 "fixed_digital: {gain_db: " << config.fixed_digital.gain_db << "}, " in ToString()
Dgain_controller2_unittest.cc56 config.fixed_digital.gain_db = fixed_gain_db; in CreateAgc2FixedDigitalModeConfig()
117 config.fixed_digital.gain_db = -5.f; in TEST()
122 config.fixed_digital.gain_db = fixed_gain_db; in TEST()
217 for (const auto gain_db : gains_db) { in TEST_P() local
218 SCOPED_TRACE(std::to_string(gain_db)); in TEST_P()
219 auto agc2_fixed = CreateAgc2FixedDigitalMode(gain_db, params.sample_rate); in TEST_P()
264 config.fixed_digital.gain_db = 0.f; in TEST()
278 config.fixed_digital.gain_db = 0.f; in TEST()
Daudio_processing_impl.cc848 config_.gain_controller2.fixed_digital.gain_db = value; in HandleCaptureRuntimeSettings()
/external/webrtc/modules/audio_processing/include/
Daudio_processing.h343 float gain_db = 0.f; member
406 static RuntimeSetting CreateCompressionGainDb(int gain_db) { in CreateCompressionGainDb() argument
407 RTC_DCHECK_GE(gain_db, 0); in CreateCompressionGainDb()
408 RTC_DCHECK_LE(gain_db, 90); in CreateCompressionGainDb()
409 return {Type::kCaptureCompressionGain, static_cast<float>(gain_db)}; in CreateCompressionGainDb()
414 static RuntimeSetting CreateCaptureFixedPostGain(float gain_db) { in CreateCaptureFixedPostGain() argument
415 RTC_DCHECK_GE(gain_db, 0.f); in CreateCaptureFixedPostGain()
416 RTC_DCHECK_LE(gain_db, 90.f); in CreateCaptureFixedPostGain()
417 return {Type::kCaptureFixedPostGain, gain_db}; in CreateCaptureFixedPostGain()
Daudio_processing.cc108 << gain_controller2.fixed_digital.gain_db in ToString()
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
Dsignal_processing.py338 gain_db = signal_power - noise_power - target_snr
344 return signal.overlay(noise.apply_gain(gain_db))
348 return noise.overlay(signal, gain_during_overlay=gain_db)
351 return signal.overlay(noise.apply_gain(gain_db))
354 return signal.overlay(noise.apply_gain(gain_db), loop=True)
/external/webrtc/test/fuzzers/
Daudio_processing_configs_fuzzer.cc130 apm_config.gain_controller2.fixed_digital.gain_db = gain_controller2_gain_db; in CreateApm()
/external/adhd/cras/src/dsp/
Ddrc_kernel.c540 float gain_db = linear_to_decibels(gain); in dk_update_detector_average() local
542 gain_db * sat_release_frames_inv_neg; in dk_update_detector_average()
/external/webrtc/modules/audio_processing/test/
Daudio_processing_simulator.cc440 apm_config.gain_controller2.fixed_digital.gain_db = in ConfigureAudioProcessor()
Daec_dump_based_simulator.cc358 apm_config.gain_controller2.fixed_digital.gain_db = in HandleMessage()