src/media/audio/audio_core/mixer/test/mixer_response_tests.cc
// Measure level response and noise floor for 1kHz sine, to a 16-bit output.
Measure level response and noise floor for 1kHz sine, to a 16-bit output.
Measure level response and noise floor for 1kHz sine to a 16 - bit output .
TEST(NoiseFloor, Output_16) {
  AudioResult::LevelOutput16 = MeasureOutputNoiseFloor<ASF::SIGNED_16>(&AudioResult::FloorOutput16);
  EXPECT_NEAR(AudioResult::LevelOutput16, 0.0, AudioResult::kPrevLevelToleranceOutput16);
  AudioResult::LevelToleranceOutput16 =
      fmax(AudioResult::LevelToleranceOutput16, abs(AudioResult::LevelOutput16));
  EXPECT_GE(AudioResult::FloorOutput16, AudioResult::kPrevFloorOutput16)
      << std::setprecision(10) << AudioResult::FloorOutput16;
}
TEST ( NoiseFloor , Output_16 ) { AudioResult :: LevelOutput16 = MeasureOutputNoiseFloor < ASF :: SIGNED_16 > ( & AudioResult :: FloorOutput16 ) ; EXPECT_NEAR ( AudioResult :: LevelOutput16 , 0.0 , AudioResult :: kPrevLevelToleranceOutput16 ) ; AudioResult :: LevelToleranceOutput16 = fmax ( AudioResult :: LevelToleranceOutput16 , abs ( AudioResult :: LevelOutput16 ) ) ; EXPECT_GE ( AudioResult :: FloorOutput16 , AudioResult :: kPrevFloorOutput16 ) << std :: setprecision ( 10 ) << AudioResult :: FloorOutput16 ; }
Measure level response and noise floor for 1kHz sine, to a 16-bit output.
Measure level response and noise floor for 1kHz sine to a 16 - bit output .