src/media/audio/audio_core/mixer/test/mixer_tests_recap.cc
//
// Display our baseline noise floor measurements, in decibels below full-scale
//
// 'Source' noise floor is the demonstrated best-case background noise when accepting audio (from an
// AudioRenderer or audio Input device, for example). 'Output' noise floor is the demonstrated
// best-case background noise when emitting audio (to an audio Output device or AudioCapturer, for
// example).
Display our baseline noise floor measurements, in decibels below full-scale
'Source' noise floor is the demonstrated best-case background noise when accepting audio (from an
AudioRenderer or audio Input device, for example). 'Output' noise floor is the demonstrated
best-case background noise when emitting audio (to an audio Output device or AudioCapturer, for
example).
Display our baseline noise floor measurements in decibels below full - scale ' Source ' noise floor is the demonstrated best - case background noise when accepting audio ( from an AudioRenderer or audio Input device for example ) . ' Output ' noise floor is the demonstrated best - case background noise when emitting audio ( to an audio Output device or AudioCapturer for example ) .
void MixerTestsRecap::PrintNoiseFloorSummary() {
  printf("\n\n Best-case noise-floor");
  printf("\n   (in dB, with prior results, higher is better)");
  printf("\n\n   Sources");
  printf("\n\t      8-bit    ");
  printf("         16-bit    ");
  printf("         24-bit    ");
  printf("          Float");
  printf("\n\t %6.2lf  (%6.2lf)   %6.2lf  (%6.2lf)  ", AudioResult::FloorSource8,
         AudioResult::kPrevFloorSource8, AudioResult::FloorSource16,
         AudioResult::kPrevFloorSource16);
  printf(" %6.2lf  (%6.2lf)   %6.2lf  (%6.2lf)", AudioResult::FloorSource24,
         AudioResult::kPrevFloorSource24, AudioResult::FloorSourceFloat,
         AudioResult::kPrevFloorSourceFloat);
  printf("\n\n   Mix Floor");
  printf("\n\t      8-bit    ");
  printf("         16-bit    ");
  printf("         24-bit    ");
  printf("          Float    ");
  printf("      Stereo->Mono");
  printf("\n\t %6.2lf  (%6.2lf)   %6.2lf  (%6.2lf)   %6.2lf  (%6.2lf)  ", AudioResult::FloorMix8,
         AudioResult::kPrevFloorMix8, AudioResult::FloorMix16, AudioResult::kPrevFloorMix16,
         AudioResult::FloorMix24, AudioResult::kPrevFloorMix24);
  printf(" %6.2lf  (%6.2lf)   %6.2lf  (%6.2lf)", AudioResult::FloorMixFloat,
         AudioResult::kPrevFloorMixFloat, AudioResult::FloorStereoMono,
         AudioResult::kPrevFloorStereoMono);
  printf("\n\n   Outputs");
  printf("\n\t      8-bit    ");
  printf("         16-bit    ");
  printf("         24-bit    ");
  printf("          Float");
  printf("\n\t %6.2lf  (%6.2lf)   %6.2lf  (%6.2lf)  ", AudioResult::FloorOutput8,
         AudioResult::kPrevFloorOutput8, AudioResult::FloorOutput16,
         AudioResult::kPrevFloorOutput16);
  printf(" %6.2lf  (%6.2lf)   %6.2lf  (%6.2lf)", AudioResult::FloorOutput24,
         AudioResult::kPrevFloorOutput24, AudioResult::FloorOutputFloat,
         AudioResult::kPrevFloorOutputFloat);
  printf("\n\n");
}
void MixerTestsRecap :: PrintNoiseFloorSummary ( ) { printf ( " \n \n " ) ; printf ( " \n " ) ; printf ( " \n \n " ) ; printf ( " \n \t " ) ; printf ( " " ) ; printf ( " " ) ; printf ( " " ) ; printf ( " \n \t " , AudioResult :: FloorSource8 , AudioResult :: kPrevFloorSource8 , AudioResult :: FloorSource16 , AudioResult :: kPrevFloorSource16 ) ; printf ( " " , AudioResult :: FloorSource24 , AudioResult :: kPrevFloorSource24 , AudioResult :: FloorSourceFloat , AudioResult :: kPrevFloorSourceFloat ) ; printf ( " \n \n " ) ; printf ( " \n \t " ) ; printf ( " " ) ; printf ( " " ) ; printf ( " " ) ; printf ( " " ) ; printf ( " \n \t " , AudioResult :: FloorMix8 , AudioResult :: kPrevFloorMix8 , AudioResult :: FloorMix16 , AudioResult :: kPrevFloorMix16 , AudioResult :: FloorMix24 , AudioResult :: kPrevFloorMix24 ) ; printf ( " " , AudioResult :: FloorMixFloat , AudioResult :: kPrevFloorMixFloat , AudioResult :: FloorStereoMono , AudioResult :: kPrevFloorStereoMono ) ; printf ( " \n \n " ) ; printf ( " \n \t " ) ; printf ( " " ) ; printf ( " " ) ; printf ( " " ) ; printf ( " \n \t " , AudioResult :: FloorOutput8 , AudioResult :: kPrevFloorOutput8 , AudioResult :: FloorOutput16 , AudioResult :: kPrevFloorOutput16 ) ; printf ( " " , AudioResult :: FloorOutput24 , AudioResult :: kPrevFloorOutput24 , AudioResult :: FloorOutputFloat , AudioResult :: kPrevFloorOutputFloat ) ; printf ( " \n \n " ) ; }
Display our baseline noise floor measurements, in decibels below full-scale
'Source' noise floor is the demonstrated best-case background noise when accepting audio (from an
AudioRenderer or audio Input device, for example).
Display our baseline noise floor measurements in decibels below full - scale ' Source ' noise floor is the demonstrated best - case background noise when accepting audio ( from an AudioRenderer or audio Input device for example ) .