Re: kAudioDevicePropertyDeviceIsAlive property
Re: kAudioDevicePropertyDeviceIsAlive property
- Subject: Re: kAudioDevicePropertyDeviceIsAlive property
- From: Jesus Vicente <email@hidden>
- Date: Tue, 24 Aug 2010 09:29:04 +0200 (CEST)
Dear Jeff,
thank you very much. You were right, I was writing,
theAddress.mScope = kAudioDevicePropertyScopeInput;
instead of,
theAddress.mScope = kAudioObjectPropertyScopeGlobal;
Kind regards,
Jesus
> Date: Mon, 23 Aug 2010 11:18:38 -0700
> From: Jeff Moore <email@hidden>
> Subject: Re: kAudioDevicePropertyDeviceIsAlive property
> To: CoreAudio API <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> Chances are good you didn't pass the right address in when you signed up for the notification. Note that kAudioDevicePropertyDeviceIsAlive is a global scope property, for example.
>
> --
>
> Jeff Moore
> Core Audio
> Apple
>
>
>
> On Aug 23, 2010, at 1:11 AM, Jesus Vicente wrote:
>
> > I recently substituted the functions labelled as deprecated in the HAL APIs. In general I got the same functionality for all the new functions, however I am having some problems in receiving notification > when the device properties change.
> >
> > Basically, I substituted the function for listening the change in properties, AudioDeviceAddPropertyListener, by the new one AudioObjectAddPropertyListener. The change was successful for the majority of the properties (like kAudioDevicePropertyVolumeScalar, kAudioDevicePropertyStreamFormat, ...) but it did not work for the property kAudioDevicePropertyDeviceIsAlive. Therefore, my program did not receive notifications when I unplugged a device. Does anyone find a similar problem?
_______________________________________________
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