Skip to content

Commit

Permalink
Merge pull request #329 from ThisIsAreku/go_rtmidi_version
Browse files Browse the repository at this point in the history
Go: add GetVersion call
  • Loading branch information
garyscavone committed Jan 7, 2024
2 parents b45dae2 + 98e5221 commit 6ad594f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/go/rtmidi/rtmidi.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ func (api API) String() string {
return "?"
}

// GetVersion Return the current RtMidi version.
func GetVersion() string {
return C.GoString(C.rtmidi_get_version())
}

// CompiledAPI determines the available compiled MIDI APIs.
func CompiledAPI() (apis []API) {
n := C.rtmidi_get_compiled_api(nil, 0)
Expand Down

0 comments on commit 6ad594f

Please sign in to comment.