• 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
MIDISourceCreate and MIDIReceived
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MIDISourceCreate and MIDIReceived


  • Subject: MIDISourceCreate and MIDIReceived
  • From: Normen Hansen <email@hidden>
  • Date: Sun, 27 Aug 2006 06:18:09 +0200

Hi
I am currently working on a JNI library to allow my JAVA programs to instantiate CoreMIDI destinations and sources in the system and receive/send MIDI data via those virtual ports.
So what I basically try to do on the native side is:


- Use MIDIDestinationCreate / MIDISourceCreate to establish virtual ports (works)
- Send incoming midi data to MIDIDestination back to JAVA (works)
- Publish JAVA created MIDI data via MIDISource using MIDIReceived (does not work)


When I try and send a prepared MIDIPacketList doing something like

   MIDIReceived(sourceRef, &packetList);

no MIDI data becomes present at the source, other applications do not receive the data.

I double-checked all pointers etc, the sourceRef is correct.

To create the project in XCode 2.3, I started with the "Java JNI Application", added CoreMIDI and CoreServices as Frameworks and included <CoreMIDI/MIDIServices.h> in the librarys C file.
I already tried using the CoreMIDIServer framework instead of the CoreMIDI one, but then none of the MIDI calls seem to work (probably because the CoreMIDIServer Framework needs those calls to be in the main() method).
In another post in this mailing list someone had a similar problem and solved it by starting with another XCode template. So I have the feeling that my problem might be solved by some compiler option or importing another Framework or something like that.


Any help would be greatly appreciated.

Regards,
Normen Hansen
(email@hidden)
_______________________________________________
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: Re: A plea for generic interfaces!
  • Next by Date: Re: getting host tempo in an Audio Unit
  • Previous by thread: Re: getting host tempo in an Audio Unit
  • Next by thread: Format Converter problem
  • Index(es):
    • Date
    • Thread