mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-24 08:44:44 +01:00
Merge pull request #860 from rs1729/fix_fprintf_percent
core/src/dsp/multirate/rational_resampler.h
This commit is contained in:
commit
fccd08a6e0
@ -141,7 +141,7 @@ namespace dsp::multirate {
|
||||
double actualOutSR = (double)IntSR * (double)interp / (double)decim;
|
||||
double error = abs((actualOutSR - _outSamplerate) / _outSamplerate) * 100.0;
|
||||
if (error > 0.01) {
|
||||
fprintf(stderr, "Warning: resampling error is over 0.01%: %lf\n", error);
|
||||
fprintf(stderr, "Warning: resampling error is over 0.01%%: %lf\n", error);
|
||||
}
|
||||
|
||||
// If the power decimator already did all the work, don't use the resampler
|
||||
@ -171,4 +171,4 @@ namespace dsp::multirate {
|
||||
double _outSamplerate;
|
||||
Mode mode;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user