Re: kAudioOutputUnitProperty_IsRunning doesn't correspond to the audio device running
Re: kAudioOutputUnitProperty_IsRunning doesn't correspond to the audio device running
- Subject: Re: kAudioOutputUnitProperty_IsRunning doesn't correspond to the audio device running
- From: Jeff Moore <email@hidden>
- Date: Mon, 13 Nov 2006 12:50:24 -0800
On Nov 11, 2006, at 7:25 AM, Steve Checkoway wrote:
(My apologies if this goes through twice, I had some mail server
issues.)
No doubt. Your message ended up in both the body and the subject field.
When I change the default output's format (by changing from 44.1kHz
to 48kHz, for example), my audio unit property listener fires with
kAudioUnitProperty_StreamFormat. If I then call
AudioDeviceGetCurrentTime on the corresponding audio device, I get
the error kAudioHardwareNotRunningError but the
kAudioOutputUnitProperty_IsRunning never fires (as a result of the
device stopping).
I really need to keep the time stamps returned by
AudioDeviceGetCurrentTime() and those passed to my render function
in sync but I'm unsure how to do that in the face of changing output
formats.
Actually, looking back at my logs, it looks like when the
kAudioOutputUnitProperty_IsRunning fires for the first time I start
the output unit, the device is still saying that it isn't running.
Lastly, I'm setting kAudioOutputUnitProperty_StartTimestampsAtZero
to zero but this constant doesn't appear in the 2.8 sdk so I'm using
the constant 2007, will this not work on 2.8? (I realize I asked
this before in mid June, but no one answered.) If not, I need to
deal with this as well.
Any advice is very much appreciated.
I'm not sure that kAudioOutputUnitProperty_IsRunning is what you want.
To my knowledge, the value of this property merely reflects whether or
not AudioOutputUnitStart()/AudioOutputUnitStop() have been called. If
you want to monitor whether or not the actual device AUHAL is talking
to is running or not, you have to use/monitor the HAL device property,
kAudioDevicePropertyDeviceIsRunning.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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
References: | |
| >kAudioOutputUnitProperty_IsRunning doesn't correspond to the audio device running When I change the default output's format (by changing from 44.1kHz to 48kHz, for example), my audio unit property listener fires with kAudioUnitProperty_StreamFormat. If I then call AudioDeviceGetCurrentTime on the corresponding audio device, I get the error kAudioHardwareNotRunningError but the kAudioOutputUnitProperty_IsRunning never fires (as a result of the device stopping). I really need to keep the time stamps returned by AudioDeviceGetCurrentTime() and those passed to my render function in sync but I'm unsure how to do that in the face of changing output formats. Actually, looking back at my logs, it looks like when the kAudioOutputUnitProperty_IsRunning fires for the first time I start the output unit, the device is still saying that it isn't running. Lastly, I'm setting kAudioOutputUnitProperty_StartTimestampsAtZero to zero but this constant doesn't appear in the 2.8 sdk s o I'm using the constant 2007, will this not work on 2.8? (I realize I asked this before in mid June, but no one answered.) If not, I need to deal with this as well. Any advice is very much appreciated. -- Steve Checkoway (From: Steve Checkoway <email@hidden>) |
- Prev by Date:
AUGraph and render callbacks
- Next by Date:
Re: mp3 encoder?
- Previous by thread:
kAudioOutputUnitProperty_IsRunning doesn't correspond to the audio device running When I change the default output's format (by changing from 44.1kHz to 48kHz, for example), my audio unit property listener fires with kAudioUnitProperty_StreamFormat. If I then call AudioDeviceGetCurrentTime on the corresponding audio device, I get the error kAudioHardwareNotRunningError but the kAudioOutputUnitProperty_IsRunning never fires (as a result of the device stopping). I really need to keep the time stamps returned by AudioDeviceGetCurrentTime() and those passed to my render function in sync but I'm unsure how to do that in the face of changing output formats. Actually, looking back at my logs, it looks like when the kAudioOutputUnitProperty_IsRunning fires for the first time I start the output unit, the device is still saying that it isn't running. Lastly, I'm setting kAudioOutputUnitProperty_StartTimestampsAtZero to zero but this constant doesn't appear in the 2.8 sdk s o I'm using the constant 2007, will this not work on 2.8? (I realize I asked this before in mid June, but no one answered.) If not, I need to deal with this as well. Any advice is very much appreciated. -- Steve Checkoway
- Next by thread:
Re: kAudioOutputUnitProperty_IsRunning doesn't correspond to the audio device running
- Index(es):