When I open an input stream with callback on MacOS, I have noticed that that the timeInfo is returning the same time multiple buffers in a row.
If I set my framePerBuffer to 512, the inputBufferAdcTime and currentTime are constant over 4 to 6 calls to the callback.
Some old threads seem to point to CoreAudio using a larger master buffer. I understand that inputBufferAdcTime might stay contstant but why would currentTime (and Pa_GetStreamTime) also stay constant?
I am running real time beat tracking on the stream and need to know the exact time of each buffer. It feels like I have to keep track of the master buffer by recording the inputBufferAdcTime from one call to the next and then the number of frames copied. What am I missing?
Thanks
When I open an input stream with callback on MacOS, I have noticed that that the
timeInfo
is returning the same time multiple buffers in a row.If I set my framePerBuffer to 512, the
inputBufferAdcTime
andcurrentTime
are constant over 4 to 6 calls to the callback.Some old threads seem to point to CoreAudio using a larger master buffer. I understand that inputBufferAdcTime might stay contstant but why would currentTime (and Pa_GetStreamTime) also stay constant? I am running real time beat tracking on the stream and need to know the exact time of each buffer. It feels like I have to keep track of the master buffer by recording the
inputBufferAdcTime
from one call to the next and then the number of frames copied. What am I missing? Thanks