src/media/audio/audio_core/mixer/test/mixer_response_tests.cc
// Measure level response and noise floor for 1kHz sine, to a 24-bit output.
Measure level response and noise floor for 1kHz sine, to a 24-bit output.
Measure level response and noise floor for 1kHz sine to a 24 - bit output .
TEST(NoiseFloor, Output_24) {
  AudioResult::LevelOutput24 =
      MeasureOutputNoiseFloor<ASF::SIGNED_24_IN_32>(&AudioResult::FloorOutput24);
  EXPECT_NEAR(AudioResult::LevelOutput24, 0.0, AudioResult::kPrevLevelToleranceOutput24);
  AudioResult::LevelToleranceOutput24 =
      fmax(AudioResult::LevelToleranceOutput24, abs(AudioResult::LevelOutput24));
  EXPECT_GE(AudioResult::FloorOutput24, AudioResult::kPrevFloorOutput24)
      << std::setprecision(10) << AudioResult::FloorOutput24;
}
TEST ( NoiseFloor , Output_24 ) { AudioResult :: LevelOutput24 = MeasureOutputNoiseFloor < ASF :: SIGNED_24_IN_32 > ( & AudioResult :: FloorOutput24 ) ; EXPECT_NEAR ( AudioResult :: LevelOutput24 , 0.0 , AudioResult :: kPrevLevelToleranceOutput24 ) ; AudioResult :: LevelToleranceOutput24 = fmax ( AudioResult :: LevelToleranceOutput24 , abs ( AudioResult :: LevelOutput24 ) ) ; EXPECT_GE ( AudioResult :: FloorOutput24 , AudioResult :: kPrevFloorOutput24 ) << std :: setprecision ( 10 ) << AudioResult :: FloorOutput24 ; }
Measure level response and noise floor for 1kHz sine, to a 24-bit output.
Measure level response and noise floor for 1kHz sine to a 24 - bit output .