1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Use wxFprintf not fprintf and you don't need c_str

This commit is contained in:
Paul Licameli
2017-10-09 00:29:10 -04:00
parent 2dacaa56a9
commit cd06c04fa0
5 changed files with 74 additions and 73 deletions

View File

@@ -72,7 +72,7 @@ static bool IsPowerOfTwo(size_t x)
static size_t NumberOfBitsNeeded(size_t PowerOfTwo)
{
if (PowerOfTwo < 2) {
fprintf(stderr, "Error: FFT called with size %ld\n", PowerOfTwo);
wxFprintf(stderr, "Error: FFT called with size %ld\n", PowerOfTwo);
exit(1);
}
@@ -136,7 +136,7 @@ void FFT(size_t NumSamples,
double tr, ti; /* temp real, temp imaginary */
if (!IsPowerOfTwo(NumSamples)) {
fprintf(stderr, "%ld is not a power of two\n", NumSamples);
wxFprintf(stderr, "%ld is not a power of two\n", NumSamples);
exit(1);
}
@@ -367,7 +367,7 @@ void NewWindowFunc(int whichFunction, size_t NumSamples, bool extraSample, float
switch (whichFunction) {
default:
fprintf(stderr, "FFT::WindowFunc - Invalid window function: %d\n", whichFunction);
wxFprintf(stderr, "FFT::WindowFunc - Invalid window function: %d\n", whichFunction);
break;
case eWinFuncRectangular:
// Multiply all by 1.0f -- do nothing
@@ -682,6 +682,6 @@ void DerivativeOfWindowFunc(int whichFunction, size_t NumSamples, bool extraSamp
}
break;
default:
fprintf(stderr, "FFT::DerivativeOfWindowFunc - Invalid window function: %d\n", whichFunction);
wxFprintf(stderr, "FFT::DerivativeOfWindowFunc - Invalid window function: %d\n", whichFunction);
}
}