Re: AudioDeviceStart
Re: AudioDeviceStart
- Subject: Re: AudioDeviceStart
- From: Jeff Moore <email@hidden>
- Date: Tue, 18 Nov 2003 11:25:10 -0800
AudioDeviceStart, like pretty much all of the HAL's API, is an
asynchronous operation. kAudioDevicePropertyDeviceIsRunning won't
return that it is running until you receive the notification (you are
listening for this, right?).
On Nov 18, 2003, at 8:29 AM, Jim Dolan wrote:
Hi -
System: G5 dual - with the built in audio device:
If I call AudioDeviceStart successfully and then immediately query
kAudioDevicePropertyDeviceIsRunning property, the device does NOT
always
report that it is running. I have had to wait 100 to 1000ms before
getting
the proper value from the device.
When is the device officially running - after the start call or only
after a
callback has occurred or some other time? The documentation says that
a
callback will likely occur before AudioDeviceStart returns but there
is no
guarantee of that.
Can anyone describe what I should be able to expect?
--
Jeff Moore
Core Audio
Apple
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.