AUGenericView relies on CoreAudio.component but doesn't load it
AUGenericView relies on CoreAudio.component but doesn't load it
- Subject: AUGenericView relies on CoreAudio.component but doesn't load it
- From: Geert Bevin <email@hidden>
- Date: Tue, 02 Aug 2011 18:54:30 +0200
I figured out why this happens.
It turns out that AUGenericView relies on CoreAudio.component to build the GUI and in one situation I had one of the standard Apple AUs loaded beforehand, which loads CoreAudio.component. However, when loading other AUs (like those from AirWindows) that only have a generic AU and using AUGenericView as shown in the CocoaAUHost example, CoreAudio.component isn't loaded and AUGenericView fails during initialization with the assertion exception below.
Is this something that should be fixed in AUGenericView itself? Any thoughts on how to best work around this for now, I'm using the Juce framework and would like to submit a patch to it that fixes this for everyone.
Thanks,
Geert
On 30 Jul 2011, at 12:05, Geert Bevin wrote:
> I'm trying to track down why generic a AUGenericView sometimes behaves differently in the same code and with the same plugin. I appreciate any suggestions that anyone may have as am quite at loss at the moment.
>
> Below is a strack trace of an assertion that is thrown when I generate a complete generic view in certain conditions, I haven't figured out what the difference is when the generic view is generated without issues.
>
> I also tried just generating the title of the AUGenericView and in the situation that otherwise throws the assertion, the 'Manufacturer' label is empty in the generated title (see screenshots).
>
> Does anyone know why this label could turn out being empty with the same AU hosting code (Juce), same plugin, same machine and same environment? I'm thinking that this might be the case for the other text labels, which maybe triggers the assertion. I wondered if it might be something with the locale, but through debugging I did confirm that they're the same each time.
>
> Thanks for any ideas that could help me forward with this problem.
>
> Geert
>
> Thread 1 (process 563):
> #0 0x97e68586 in objc_exception_throw ()
> #1 0x93a023f8 in +[NSException raise:format:arguments:] ()
> #2 0x9471c75b in -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] ()
> #3 0x92129218 in -[NSCell _objectValue:forString:errorDescription:] ()
> #4 0x92129159 in -[NSCell _objectValue:forString:] ()
> #5 0x921290ae in -[NSCell setStringValue:] ()
> #6 0x921efb64 in -[NSControl setStringValue:] ()
> #7 0x01103941 in +[AUAdvancedParameterStrip getTextFieldWithString:attributes:width:] ()
> #8 0x011066a3 in -[AUAdvancedParameterStrip initWithAudioUnitParameter:eventListener:width:] ()
> #9 0x010efe4a in -[AUGenericView createParameterStripsIsThreaded:] ()
> #10 0x010eec17 in -[AUGenericView workhorseAssembly:] ()
> #11 0x010f36a8 in -[AUGenericView assembleView] ()
> #12 0x010f1b4c in -[AUGenericView performCommonInitialization] ()
> #13 0x010f1fb6 in -[AUGenericView(AUGenericView_Private) initWithAudioUnit:size:displayFlags:displayData:] ()
> #14 0x010edccf in -[AUGenericView initWithAudioUnit:] ()
> #15 0x00c5b3db in juce::AudioUnitPluginWindowCocoa::createView (this=0x3e431a0, createGenericViewIfNeeded=true) at juce_amalgamated.cpp:32503
> #16 0x00bbe442 in juce::ScopedPointer<juce::AudioProcessorEditor>::operator= () at /Users/gbevin/Workspace/eigend-1.4/eigend-gpl/lib_juce/juce_amalgamated.h:32419
> #17 0x00bbe442 in juce::AudioUnitPluginInstance::createEditor (this=0x2972eab0) at juce_amalgamated.cpp:32672
> #18 0x00b8e228 in juce::AudioProcessor::createEditorIfNeeded (this=0x2972eab0) at juce_amalgamated.cpp:36296
>
> <generic_au_title_alpha.png><generic_au_title_pico.png>
--
Geert Bevin
My band's debut album 'Speaker Mind' is out!
http://music.flytecase.be
Alternative pop-rock songs with intertwining vocal melodies that are elevated by gut-felt music.
It radiates energy and emotion, even during the softer parts!
_______________________________________________
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