Re: AMS crash when calling setStreamAvailable
Re: AMS crash when calling setStreamAvailable
- Subject: Re: AMS crash when calling setStreamAvailable
- From: Jeff Moore <email@hidden>
- Date: Mon, 21 Jan 2008 17:05:49 -0800
On Jan 21, 2008, at 4:59 PM, Brett George wrote:
Thanks, I've found the source of my error. I was thrown by the way
AMS was behaving.
And to be fair, AMS definitely has a bug which probably just made it
more confusing =)
Is AMS open source?
No, but AMS does share some code with HALLab, such as the various HAL
wrappers in our PublicUtility code. And HALLab's entire source is
available in our SDK.
Jeff Moore wrote:
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();
resume
--
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