!7 cmodule AudioInputCorrelationTest > DynPrintLogAndEnabled { double windowSize = 1; // milliseconds transient short[] buffer; start { dm_addAudioListener(voidfunc(short[] data) enter { print("huh"); if (!enabled) ret; buffer = cloneArray(data); /*dm_q(r { if (q.size() > 2) ret with print("overload"); short[] buf = buffer; Float sampleRate = dm_audioInputSampleRate(); if (sampleRate == null) ret; int windowLength = msToSamples_int(windowSize, sampleRate); printWithMilliseconds("Window length: " + windowLength); }));*/ }); } }