Re: Apple AUs: assertion failure in view
Re: Apple AUs: assertion failure in view
- Subject: Re: Apple AUs: assertion failure in view
- From: Joe Bamberg <email@hidden>
- Date: Fri, 26 Mar 2010 13:30:25 +0000
Sorry, I haven't had a lot of time to spend on
this lately, been busily involved in the effort
of porting our app to Windows... Thanks for
your reply and to the list in general.
Yes, this problem happens when first opening the view.
The audio unit is initialized, in the sense of
AudioUnitInitialize() returning noErr, and
if I force the generic view, it works when I
send audio through it.
I was unable to get a breakpoint at
[AUDelayCustomView getParameterValue:]
to trigger. However I was able to break on
objc_exception_throw:
(gdb) bt
#0 0x984a5f26 in objc_exception_throw ()
#1 0x982ab2b8 in +[NSException raise:format:arguments:] ()
#2 0x9750ae0f in -[NSAssertionHandler
handleFailureInMethod:object:file:lineNumber:description:] ()
#3 0x18deef2c in dyld_stub_pthread_getspecific ()
#4 0x18dee945 in dyld_stub_pthread_getspecific ()
#5 0x18df08b9 in dyld_stub_pthread_getspecific ()
#6 0x91a7abe9 in -[NSView _drawRect:clip:] ()
[ ... etc, etc ... ]
(gdb) info sharedlibrary 0x18deef2c
157 CoreAudioAUUI B 0x18dae000 dyld Y Y /
System/Library/Components/CoreAudio.component/Contents/Resources/
CoreAudioAUUI.bundle/Contents/MacOS/CoreAudioAUUI at 0x18dae000
(offset 0x18dae000)
(gdb)
I'm away from my mail for a couple of weeks,
but I'll post more info when I get a chance to
look at this again; no doubt we are doing
something strange, I just haven't been able
to figure out what it is yet.
joe
On 23 Mar 2010, at 18:25, Michael Hopkins wrote:
Joe,
This assert is triggered if an error is returned by
AudioUnitGetParameter(). This is a strange situation, and without
more information, it is hard to determine why it is occurring. I'm
assuming that it is happening when you first open the view.
The fact that these views work correctly in hosts like Logic, and
AULab indicate that it is something that your application is doing
strangely. Here are some things to check:
Make sure the audio unit has been fully created before you try to
open and host the view
Make sure you close the view before you dispose of the audio unit
To set a breakpoint on getParameter value in gdb, do
tb -[AUDelayCustomView getParameterValue:]
Hope this helps!
-michael
_______________________________________________
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