mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 04:37:37 +01:00
remove old useless debug code from audio sink
This commit is contained in:
parent
38a95b4011
commit
06b7ad5c98
@ -224,14 +224,6 @@ private:
|
|||||||
int count = _this->stereoPacker.out.read();
|
int count = _this->stereoPacker.out.read();
|
||||||
if (count < 0) { return 0; }
|
if (count < 0) { return 0; }
|
||||||
|
|
||||||
// For debug purposes only...
|
|
||||||
// if (nBufferFrames != count) { flog::warn("Buffer size mismatch, wanted {0}, was asked for {1}", count, nBufferFrames); }
|
|
||||||
// for (int i = 0; i < count; i++) {
|
|
||||||
// if (_this->stereoPacker.out.readBuf[i].l == NAN || _this->stereoPacker.out.readBuf[i].r == NAN) { flog::error("NAN in audio data"); }
|
|
||||||
// if (_this->stereoPacker.out.readBuf[i].l == INFINITY || _this->stereoPacker.out.readBuf[i].r == INFINITY) { flog::error("INFINITY in audio data"); }
|
|
||||||
// if (_this->stereoPacker.out.readBuf[i].l == -INFINITY || _this->stereoPacker.out.readBuf[i].r == -INFINITY) { flog::error("-INFINITY in audio data"); }
|
|
||||||
// }
|
|
||||||
|
|
||||||
memcpy(outputBuffer, _this->stereoPacker.out.readBuf, nBufferFrames * sizeof(dsp::stereo_t));
|
memcpy(outputBuffer, _this->stereoPacker.out.readBuf, nBufferFrames * sizeof(dsp::stereo_t));
|
||||||
_this->stereoPacker.out.flush();
|
_this->stereoPacker.out.flush();
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user