• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Subject: MIDIEvent ambiguous name lookup in Core Audio Utility Classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: hallab telemetry
  • Next by Date: Static when playing back buffers
  • Previous by thread: Re: hallab telemetry
  • Next by thread: Static when playing back buffers
  • Index(es):
    • Date
    • Thread