Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AMS crash when calling setStreamAvailable



That code seems kosher, but when I decode the symbols in the crashed thread you posted, the crash appears to be happening in response to somebody hitting one of the test buttons in the surround sound editor. Specifically, it appears to be throwing an exception that isn't being caught before exiting an ObjC entry point. The exception is being thrown because AudioDeviceStart is returning some error.

It's possible that this error is due to your driver doing something that makes it fail to start. But this code I was looking at in AMS is going to always crash like this when AudioDeviceStart returns an error. I wrote up a bug about it, for AMS to fix this in general, but you might want to take a look at why AudioDeviceStart might be returning an error in this case.


On Jan 21, 2008, at 3:07 PM, Brett George wrote:

Is there anything special I have to do to use IOAudioStream::setStreamAvailable?

I have tried surrounding it with the following:

/////
pauseAudioEngine();
beginConfigurationChange();

setStreamAvailable(fEnable);

completeConfigurationChange();
resumeAudioEngine();
/////



--

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: http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >AMS crash when calling setStreamAvailable (From: Brett George <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.