Re: Slow audio device starting on Lion?
Re: Slow audio device starting on Lion?
- Subject: Re: Slow audio device starting on Lion?
- From: Dave Fernandes <email@hidden>
- Date: Sun, 22 Jan 2012 11:46:21 -0500
Interesting. I just looked at the issue again, and now AudioOutputUnitStart() doesn't block. I guess it changed from a synchronous function to an asynchronous one in Lion. But, like you, I still get the delay before data buffers start flowing.
It's also interesting that you don't see this problem in Snow Leopard, but it's possible that we are testing on different hardware and that the hardware support for this "feature" is different on Lion and Snow Leopard.
Dave
On 2012-01-21, at 3:22 PM, Jeff Johnson wrote:
> Hi Dave.
>
> It's been a while, but just following up.
>
> I'm not sure this is the same issue you were experiencing. Mine only started on 10.7, not on 10.6. Also, AudioDeviceStart() is not blocking, it returns immediately. The delay is just in the time it takes for the callback to first occur.
>
> -Jeff
>
>
> On Jan 2, 2012, at 2:11 PM, Dave Fernandes wrote:
>
>> Sounds like a known problem on both Mac OS and iOS:
>>
>> http://lists.apple.com/archives/coreaudio-api/2010/Jun/msg00308.html
>> http://osdir.com/ml/coreaudio-api/2011-01/msg00043.html
>>
>> Perhaps it is a power-saving feature, as Shaun Guth suggests.
>>
>> Dave
>>
>> On 2012-01-02, at 1:49 PM, Jeff Johnson wrote:
>>
>>> I'm calling AudioDeviceCreateIOProcID() and then AudioDeviceStart(). In my tests, I'm using the built-in output device. On some (but not all) machines running Lion, I'm seeing a half a second delay between the time AudioDeviceStart() returns and my AudioDeviceIOProc first gets called. I've never seen nearly this long of a delay with Snow Leopard and earlier. What would cause the delay, and is it to be expected? I know that Core Audio has changed fundamentally in Lion, so I'm wondering if that has something to do with it.
>>>
>>> -Jeff
>
>
> _______________________________________________
> 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
_______________________________________________
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