Newbie with Java CoreAudio
Newbie with Java CoreAudio
- Subject: Newbie with Java CoreAudio
- From: "Christian Martin" <email@hidden>
- Date: Thu, 20 Feb 2003 13:00:59 -0500
Hi,
I am currently porting an MIDI OS 9/OMS java/c++ application to OS
X/Coreaudio java/c++(or java coreaudio). I managed to run the new java/C++
application on OS X. Unfortunately, the application crashes unpredicately
with SIGBUS 10 error. I tried to go through my c++ code to see if they were
invalid pointer, but no (also, if it was the case, it would crash in a
predictable way). I tried to post a message on this in Java mailing list and
I did not get any answer. So my only alternative is to change my code to
java coreaudio. Right now, I can send a sysex message and the device seems
to get it right using java methods (although I am using ouputPort.send(..)
instead of SendSysexRequest, which is not working). The problem, I am having
currently is to get a callback when MIDI data comes in. Here is my code:
class SomeObject implements MIDIReadProc
{
...
public void StartMidi()
{
...
MIDIClient c = new MIDIClient( new CAFString("Device", null);
Output = c.outputPortCreate(new CAFString("O");
Input = c.inputPortCreate(new CAFString("i"), this);
a = new AUMIDIController();
a.connectSource(MIDISetup().getSource(0)); // I am sure this is right since
it works in C++
...
}
public void execute(MIDIInputPort port, MIDIEndpoint end, MIDIPacketList
list)
{
System.out.println("I got a callback!");
}
Any reason why this is not working ???
Anyone who has a sample code ???
Help !
Thanks
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
_______________________________________________
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.