MIDIReceived and virtual sources...
MIDIReceived and virtual sources...
- Subject: MIDIReceived and virtual sources...
- From: Richard Burnett <email@hidden>
- Date: Sun, 11 Jun 2006 18:30:54 -0400
Hello Everyone!
I am a bit new to OSX coding, I have a WinAPI and MFC background, so I apologize if these questions seems basic.
I have an AudioUnit that I am trying to create MIDI messages inside of and send them to a virtual port. When The AU gets initialized, I do this:
MIDIClientCreate( CFSTR("testApp"),NULL,this,&midiClient);
MIDISourceCreate( midiClient,CFSTR("out1"),&midiOut);
Then, inside the process method, I create a packetlist and send it with MIDIReceived. When I load up the AU in Rax, I do infact see the port as a midi source. I set it up to send a midi note every so often, and I am sending the data 0x90,50,60 as Byte values.
When I use MIDI monitor on that new port, I see no messages. When I attach that port to something, no notes are triggered. I had it output a message in the portion of the code just after I call MIDIReceived just to make sure I am getting called. The OSStatus that gets returned is 0.
Any thoughts on this? I really appreciate any answers as the documentation is quite sparse on a lot of the MIDI functionality it seems to me (at least for virtual sources and such)
Rick
Asylum Studio Productions
_______________________________________________
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