Lines Matching refs:attenuation
26 // This is the attenuation applied to all cases.
70 ASSERT_EQ(0, tone_gen_.Init(fs_hz, event, 0)); // 0 attenuation.
73 for (int attenuation = 1; attenuation <= 36; attenuation += 5) {
76 ss << "; attenuation " << attenuation;
78 ASSERT_EQ(0, tone_gen_.Init(fs_hz, event, attenuation));
82 pow(10, -static_cast<double>(attenuation) / 20);
83 // Verify that the attenuation is correct.
158 const int attenuation = 0; // Valid attenuation.
161 tone_gen.Init(fs, -1, attenuation));
164 tone_gen.Init(fs, 16, attenuation));
165 // Initialize with invalid attenuation -1.
167 // Initialize with invalid attenuation 37.
172 ASSERT_EQ(0, tone_gen.Init(fs, event, attenuation));