1 parent 1b306bd commit 72133f7Copy full SHA for 72133f7
1 file changed
src/soundio/sounddeviceportaudio.cpp
@@ -889,6 +889,26 @@ int SoundDevicePortAudio::callbackProcessDrift(
889
//qDebug() << "callbackProcess read:" << (float)readAvailable / outChunkSize << "Buffer empty";
890
}
891
892
+
893
+ if (in) {
894
+ int silenceCount = 0;
895
+ for (SINT i = 0; i < framesPerBuffer * 2; i++) {
896
+ if (std::abs(in[i]) < 0.005) {
897
+ silenceCount++;
898
+ }
899
900
+ qDebug() << "In silenceCount" << silenceCount;
901
902
+ /*
903
904
+ QDebug dbg(QtDebugMsg);
905
906
907
+ dbg << out[i];
908
909
+ */
910
911
912
return m_callbackResult.load(std::memory_order_acquire);
913
914
0 commit comments