Skip to content

Commit

Permalink
Go: add GetVersion call
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsAreku committed Jan 7, 2024
1 parent b45dae2 commit 98e5221
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 98e5221

Please sign in to comment.