AudioObjectAddPropertyListener vs. AudioDevicePropertyListenerProc
AudioObjectAddPropertyListener vs. AudioDevicePropertyListenerProc
- Subject: AudioObjectAddPropertyListener vs. AudioDevicePropertyListenerProc
- From: Ethan Funk <email@hidden>
- Date: Thu, 19 Nov 2009 18:51:44 -0700
I am replacing "AudioDevicePropertyListenerProc" in my code with "AudioObjectAddPropertyListener"
The goal is to get notified when the sound hardware list changes (audio device is plugged/unplugged). The code below appears to work fine - no error after calling AudioObjectAddPropertyListener, however, my audioDevListChangedProc is not getting called when I plug/unplug a USB audio interface. Note that audioDevListChangedProc is a static c++ procedure. Almost the same code works fine with AudioDevicePropertyListenerProc, again with a static declared appropriate callback. What am I missing?
AudioObjectPropertyAddress prop; prop.mSelector = kAudioHardwarePropertyDevices; prop.mScope = 0; prop.mElement = 0; err = AudioObjectAddPropertyListener(kAudioObjectSystemObject, &prop, &audioDevListChangedProc, this);
|
_______________________________________________
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