-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
For now rtMidi's openPort looks like this:
Method openPort(portNumber:Int = 0, portName:String = "RtMidi Input")
bmx_rtmidiin_openPort(midiPtr, portNumber, portName)
End Methodif the rtMidi-openPort fails, it rtMidi-library-internally throws an exception (which you can catch in Blitzmax (as @woollybah handles it) - if you knew it could throw something).
Maybe you should extend openPort to catch the exceptions already and simply return "true" or "false" depending on the result. You might have a simple "GetLastError()" if you want to know what failed.
Think it would be at least a bit more "beginner proof".
PS: coming from this thread there: https://www.syntaxbomb.com/blitzmax-blitzmax-ng/chord-displayer/msg347057737
Metadata
Metadata
Assignees
Labels
No labels