Timing issues with loopback driver on OS X Mavericks
Timing issues with loopback driver on OS X Mavericks
- Subject: Timing issues with loopback driver on OS X Mavericks
- From: Mikko Harju <email@hidden>
- Date: Fri, 15 Nov 2013 16:38:14 +0200
Hi all!
We are implementing a loopback driver to work together with our application we are currently developing. We are having issues with losing sync with the input/output threads on the application.
On OS X 10.8 the InputRenderProc starts to get samples with the correct count immediately. So for example if we should set buffer size to 512 samples, it starts getting them with timestamps with 512’s increments. On 10.9 it takes a while to stabilize, but gets eventually the timestamps consistent.
After that, only minor glitches appear here and there. It is always the case that the OutputRenderProc’s timestamp is greater than the timestamp that we have received data for (we are storing the in a CARingBuffer, with 5x the buffer size as the size). I’ve tried adjusting the internal buffer size both from the driver, and also tried to adjust the interrupt timer frequency, but I’ve not gotten any better results with these.
The console logs have this kind of entries in it:
15/11/13 15:56:48,000 kernel[0]: IOAudioStream[0xffffff803dbde600]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (39,11f4)->(3b,13f4).
15/11/13 15:56:48,000 kernel[0]: IOAudioStream[0xffffff803dbde600]::clipIfNecessary() - adjusting clipped position to (3b,11f4)
Any ideas on this will be greatly appreciated!
Thanks,
:)Mikko
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden