danomatika / ofxMidi

(maintained) Midi addon for openFrameworks
Other
262 stars 72 forks source link

Allow choice of API #50

Closed s-ol closed 6 years ago

s-ol commented 7 years ago

Currently I cannot use the JACK backend because ALSA gets tried first and there is no way of passing the API i want to use to RtMidi. This patch introduces a new enum ofxMidiApi with values like OFXMIDI_UNIX_JACK etc that map to the RtMidi APIs.

The static-ish methods of ofxRtMidiIn/ofxRtMidiOut like .listPorts() etc (everything using the s_* values) needs to be fixed still. I am not sure how to deal with it because of the static nature, the easiest would be to just drop the static methods since they internally create an instance of the wrapped class anyway.

s-ol commented 7 years ago

Also note that I couldn't test the iOs changes i made, but they are very minimal and everyone with an example project set up can verify/fix these.

s-ol commented 7 years ago

@danomatika had a chance to look at this yet?

danomatika commented 7 years ago

Not really. Life and other things right now.

s-ol commented 7 years ago

no worries.