Re: Newbie with Java CoreAudio
Re: Newbie with Java CoreAudio
- Subject: Re: Newbie with Java CoreAudio
- From: Bill Stewart <email@hidden>
- Date: Thu, 20 Feb 2003 16:39:14 -0800
Have a look at:
/Developer/Examples/CoreAudio/Java... MIDIGraph
Bill
On Thursday, February 20, 2003, at 10:00 AM, Christian Martin wrote:
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.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.