Skip to content

Commit

Permalink
Android: working discovery and listing of RTP MIDI services via Bonjour
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieroberts-rit committed Sep 17, 2011
1 parent 5855fad commit 5931c60
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,17 @@ public PluginResult execute(String action, JSONArray data, String callbackId) {


NMJConfig.addSystemListener(this);
NMJConfig.setIO(8,1);
NMJConfig.setIP(0,"192.168.1.102");
NMJConfig.setPort(0, 10233);
NMJConfig.setIO(0,1);
Log.d("MIDIManager", "add system listener");
/** can't use "this" in the below event handler **/
final NetworkMidiClient nmc = (NetworkMidiClient)this;
Log.d("MIDIManager", " make midi client");
final NetworkMidiListener ml = this;
Log.d("MIDIManager", " midi listener");

//NMJConfig.connectLocalSession(8,8);
NMJConfig.connectLocalSession(0,0);

// try{ midiOut.close(nmc); } catch (NullPointerException ne){}
//
Expand Down

0 comments on commit 5931c60

Please sign in to comment.