Inheriting from AUMIDIEffect breaks AudioUnitGetProperty?
Inheriting from AUMIDIEffect breaks AudioUnitGetProperty?
- Subject: Inheriting from AUMIDIEffect breaks AudioUnitGetProperty?
- From: Coolidge Corner <email@hidden>
- Date: Tue, 10 Oct 2006 19:52:31 -0700 (PDT)
I just added MIDI capability to my Audio Unit Effect by inheriting from AUMIDIEffect instead of AUEffect and changing COMP_TYPE to kAudioUnitType_MusicEffect.
That was easy and everything works fine on my development machine, an Intel Mac Mini running 10.4.7.
On any PowerPC Macs I test on though I get malloc errors in the console when calling AudioUnitGetProperty from my Carbon View. The GetProperty function in the effect is never reached and AudioUnitGetProperty returns the ComponentResult -108.
Here is the readout from the console (with my debug text):
propertySize is 4
UInt32 of propertySize is 4
About to make the call to AudioUnitGetProperty
Live(336,0xa000ed68) malloc: *** vm_allocate(size=2468040704) failed (error code=3)
Live(336,0xa000ed68) malloc: *** error: can't allocate region
Live(336,0xa000ed68) malloc: *** set a breakpoint in szone_error to debug
Result is -108
As an OSErr it is -108
propertySize2 is
4
UInt32 of propertySize2 is 4
Am about to call getProperty on second, test property
Live(336,0xa000ed68) malloc: *** vm_allocate(size=3221221376) failed (error code=3)
Live(336,0xa000ed68) malloc: *** error: can't allocate region
Live(336,0xa000ed68) malloc: *** set a breakpoint in szone_error to debug
Result2 is -108
And testProp is 0
Any idea what this means? Or why it only happened when I made the plugin an AUMIDIEffect, and only on the PowerPC?
Or even better, how to fix it?
Thank you!
Brian
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.
Great rates starting at 1ยข/min. _______________________________________________
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