Setting buffer size / latency of DefaultOutputUnit ?
Setting buffer size / latency of DefaultOutputUnit ?
- Subject: Setting buffer size / latency of DefaultOutputUnit ?
- From: Mattiello Joseph <email@hidden>
- Date: Thu, 5 Aug 2010 02:39:51 -0400
I'm working on an application that sends decoded PCM audio to the DefaultOutputAudioUnit. It's written in C# using Mono and I've wrapped the important parts of CoreAudio.
There is a problem in that the output unit polls for data in very small pieces and expects them very quickly. Whenever the system is under stress such as when the garbage collector is running we can't guarantee that we can return from our rendering callback in the several ms required before a gap in playback occurs. In our Linux/Windows implementations this isn't a problem because we can specify a larger latency/buffer size giving us much more execution time per callback.
The basic question is, is it possible to increase the requesting buffer size (at the course of latency of course) of the DefaultOuputAudioUnit ?
Thanks for your time.
-Joe
_______________________________________________
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