• 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
Using MIDIThruConnection.h
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using MIDIThruConnection.h


  • Subject: Using MIDIThruConnection.h
  • From: Geoff <email@hidden>
  • Date: Wed, 24 Sep 2003 14:42:42 +1000

I'm trying to make use of MIDIThruConnection.h. I can't find any documentation that says more than the header file itself. The following function is a result of my stumbling in the dark and even though I don't get an error when it runs I don't get any thruing happening.

I can still get MIDI from the source and send MIDI to the destination successfully. Perhaps there's something I'm missing? Does anybody out there know how this works?

OSStatus SetThroughConnect(MIDIEndpointRef iFromRef, MIDIEndpointRef iToRef, MIDIThruConnectionRef* oThroughRef)
{
OSStatus vError;
MIDIThruConnectionParams* vParams;
CFDataRef vDataRef;

vParams = new MIDIThruConnectionParams;
MIDIThruConnectionParamsInitialize(vParams);
vParams->numSources = one;
vParams->sources[zero].endpointRef = iFromRef;
vParams->numDestinations = one;
vParams->destinations[zero].endpointRef = iToRef;
vDataRef = CFDataCreate(NULL, (byte*)vParams, sizeof(MIDIThruConnectionParams));
vError = MIDIThruConnectionCreate(NULL, vDataRef, oThroughRef);
CFRelease(vDataRef);
delete vParams;

return vError;
}

Cheers Geoff %^>
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Using MIDIThruConnection.h
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: bandwidth limits
  • Next by Date: Retrieving Waveform Information from Audio Files
  • Previous by thread: Channels versus Streams
  • Next by thread: Re: Using MIDIThruConnection.h
  • Index(es):
    • Date
    • Thread