Re: audio device plug/unplug
Re: audio device plug/unplug
- Subject: Re: audio device plug/unplug
- From: Jeff Moore <email@hidden>
- Date: Fri, 21 Mar 2008 17:05:55 -0700
A crash like this means that the listener proc you added is bad. In this case, it looks like it was NULL, in fact. Presumably you never added a NULL listener proc, so my guess would be that you have some sort of memory smasher in your app.
On Mar 21, 2008, at 4:58 PM, apple question wrote: Hi, I am working on a audio/video software. From time to time, if I plug/unplug a usb headphone on Tiger, I receive the following crash: # 1 ( + 0x00000000) # 2 HALObject::PropertiesChanged(unsigned long, AudioObjectPropertyAddress const*) + 0x000002BB (CoreAudio + 0x0000c1a9) # 3 HALSystem::ObjectsPublishedAndDied(unsigned long, unsigned long const*, unsigned long, unsigned long const*) + 0x00000361 (CoreAudio + 0x0000c987) # 4 _AudioObjectsPublishedAndDied + 0x0000014B (CoreAudio + 0x0000b009) # 5 IOA_SingleDeviceManager::TeardownDevice(IOA_HWDevice*) + 0x000000F0 (CoreAudio + 0x0003f6b2) # 6 IOA_PlugIn::HWDevicesRemoved(std::vector<IOA_HWDevice*, std::allocator<IOA_HWDevice*> > const&) + 0x0000003D (CoreAudio + 0x0003cc1b) # 7 IOA_HWDeviceManager::IOServiceInterestHandler(IOA_HWDeviceManager*, unsigned int, unsigned int, void*) + 0x000000D6 (CoreAudio + 0x00035bc4)
My program installed AudioHardwareAddPropertyListener for kAudioHardwarePropertyDefaultInputDevice, kAudioHardwarePropertyDefaultOutputDevice, and kAudioHardwarePropertyDevices, but they are not hit if the crash happens. Is this a known OS issue?
--
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