MCPcopy Create free account
hub / github.com/audacity/audacity / FormatDifferenceForExport

Function FormatDifferenceForExport

src/effects/Contrast.cpp:358–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356 }
357
358 TranslatableString FormatDifferenceForExport( float diffdB )
359 {
360 if( diffdB != diffdB ) //test for NaN, reliant on IEEE implementation
361 return XO("Difference is indeterminate.");
362 else
363 if( fabs(diffdB) != std::numeric_limits<float>::infinity() )
364 /* i18n-hint: dB abbreviates decibels
365 RMS abbreviates root mean square, a certain averaging method */
366 return XO("Difference = %.2f RMS dB.").Format( diffdB );
367 else
368 /* i18n-hint: dB abbreviates decibels
369 RMS abbreviates root mean square, a certain averaging method */
370 return XO("Difference = infinite RMS dB.");
371 }
372}
373
374void ContrastDialog::results()

Callers 1

OnExportMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected