Searched refs:DbToRatio (Results 1 – 9 of 9) sorted by relevance
87 EXPECT_NEAR(applied_gain, DbToRatio(-kHeadroomDbfs - initial_level_dbfs), in TEST()103 EXPECT_NEAR(applied_gain, DbToRatio(kMaxGainDb), 0.1f); in TEST()118 const float kMaxChangePerFrameLinear = DbToRatio(kMaxGainChangePerFrameDb); in TEST()159 float current_value = 1.f * DbToRatio(kInitialAdaptiveDigitalGainDb); in TEST()166 const float kMaxChangePerFrameLinear = DbToRatio(kMaxGainChangePerFrameDb); in TEST()
94 : gain_applier_(false, DbToRatio(last_gain_db_)), in AdaptiveDigitalGainApplier()138 DbToRatio(last_gain_db_ + gain_change_this_frame_db)); in Process()
54 gain_to_apply_ = DbToRatio(gain_to_apply_db); in SetGain()
73 inline float DbToRatio(float v) { in DbToRatio() function79 return DbToRatio(v) * kMaximumAbsFloatS16; in DbfsToFloatS16()
77 gain_applier_.SetGainFactor(DbToRatio(config_.fixed_digital.gain_db)); in ApplyConfig()
35 const double kOneDbReduction = DbToRatio(-1.0);
84 DbToRatio(-static_cast<float>(attenuation)); in TestAmplitudes()
103 return DbToRatio(kGainMap[mic_level] - kGainMap[undo_level]); in ComputeAgc1LinearFactor()
164 const float gain_linear = DbToRatio(gain); in ScaleSignal()