src/media/audio/audio_core/mixer/test/mixer_response_tests.cc
// Measure level response and noise floor for 1kHz sine, to an 8-bit output.
Measure level response and noise floor for 1kHz sine, to an 8-bit output.
Measure level response and noise floor for 1kHz sine to an 8 - bit output .
TEST(NoiseFloor, Output_8) {
  AudioResult::LevelOutput8 = MeasureOutputNoiseFloor<ASF::UNSIGNED_8>(&AudioResult::FloorOutput8);
  EXPECT_NEAR(AudioResult::LevelOutput8, 0.0, AudioResult::kPrevLevelToleranceOutput8);
  AudioResult::LevelToleranceOutput8 =
      fmax(AudioResult::LevelToleranceOutput8, abs(AudioResult::LevelOutput8));
  EXPECT_GE(AudioResult::FloorOutput8, AudioResult::kPrevFloorOutput8)
      << std::setprecision(10) << AudioResult::FloorOutput8;
}
TEST ( NoiseFloor , Output_8 ) { AudioResult :: LevelOutput8 = MeasureOutputNoiseFloor < ASF :: UNSIGNED_8 > ( & AudioResult :: FloorOutput8 ) ; EXPECT_NEAR ( AudioResult :: LevelOutput8 , 0.0 , AudioResult :: kPrevLevelToleranceOutput8 ) ; AudioResult :: LevelToleranceOutput8 = fmax ( AudioResult :: LevelToleranceOutput8 , abs ( AudioResult :: LevelOutput8 ) ) ; EXPECT_GE ( AudioResult :: FloorOutput8 , AudioResult :: kPrevFloorOutput8 ) << std :: setprecision ( 10 ) << AudioResult :: FloorOutput8 ; }
Measure level response and noise floor for 1kHz sine, to an 8-bit output.
Measure level response and noise floor for 1kHz sine to an 8 - bit output .