kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
Merge pull request #860 from rs1729/fix_fprintf_percent
core/src/dsp/multirate/rational_resampler.hpull/886/head
commit
fccd08a6e0
|
@ -141,7 +141,7 @@ namespace dsp::multirate {
|
||||||
double actualOutSR = (double)IntSR * (double)interp / (double)decim;
|
double actualOutSR = (double)IntSR * (double)interp / (double)decim;
|
||||||
double error = abs((actualOutSR - _outSamplerate) / _outSamplerate) * 100.0;
|
double error = abs((actualOutSR - _outSamplerate) / _outSamplerate) * 100.0;
|
||||||
if (error > 0.01) {
|
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
|
// If the power decimator already did all the work, don't use the resampler
|
||||||
|
|
Ładowanie…
Reference in New Issue