Subject: MIDIEvent ambiguous name lookup in Core Audio Utility Classes
Subject: MIDIEvent ambiguous name lookup in Core Audio Utility Classes
- Subject: Subject: MIDIEvent ambiguous name lookup in Core Audio Utility Classes
- From: Fokke de Jong <email@hidden>
- Date: Thu, 08 Nov 2012 10:09:16 +0100
Hello,
I am trying to create an audio unit using the latest Core Audio Utility Classes as downloaded from the Mac Developer Library:
https://developer.apple.com/library/mac/#samplecode/CoreAudioUtilityClasses/
Compilation fails with a multiple inheritance problem in AUMIDIEffectBase.cpp:
CoreAudio/AudioUnits/AUPublic/OtherBases/AUMIDIEffectBase.cpp:160:18: Member 'MIDIEvent' found in multiple base classes of different types
CoreAudio/AudioUnits/AUPublic/AUBase/AUBase.h:704:19: Member found by ambiguous name lookup
CoreAudio/AudioUnits/AUPublic/OtherBases/AUMIDIBase.h:71:19: Member found by ambiguous name lookup
I solved this resolving the ambiguity by changing the line
result = This->MIDIEvent(inStatus, inData1, inData2, inOffsetSampleFrame);
to
result = This->AUMIDIBase::MIDIEvent(inStatus, inData1, inData2, inOffsetSampleFrame);
(which seemed to most useful of the two, as the MIDIEvent implementation just returns kAudio_UnimplementedError).
Can someone confirmed that this fix is correct?
thanks, Fokke |
_______________________________________________
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