Lines Matching refs:attenuation
38 const int attenuation = 0; // Valid attenuation.
41 tone_gen.Init(fs, -1, attenuation));
44 tone_gen.Init(fs, 16, attenuation));
45 // Initialize with invalid attenuation -1.
47 // Initialize with invalid attenuation 37.
52 ASSERT_EQ(0, tone_gen.Init(fs, event, attenuation));
73 const double attenuate_3dB = 23171.0 / 32768; // 3 dB attenuation.
74 const double base_attenuation = 16141.0 / 16384.0; // This is the attenuation
118 ASSERT_EQ(0, tone_gen.Init(fs, event, 0)); // 0 attenuation.
121 for (int attenuation = 1; attenuation <= 36; attenuation += 5) {
124 ss << "; attenuation " << attenuation;
126 ASSERT_EQ(0, tone_gen.Init(fs, event, attenuation));
130 pow(10, -static_cast<double>(attenuation)/20);
131 // Verify that the attenuation is correct.