Skip to content

Commit

Permalink
Updated to RtMidi v6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel127 committed Sep 6, 2023
1 parent e10a03d commit 5e7b446
Show file tree
Hide file tree
Showing 7 changed files with 297 additions and 272 deletions.
4 changes: 3 additions & 1 deletion RtMidi.Net/Enums/MidiApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ public enum MidiApi : byte
LinuxAlsa,
UnixJack,
WindowsMultimediaMidi,
WindowsKernelStreaming,
RtMidiDummy,
WebMidi,
WindowsUwp,
Android,
}
11 changes: 11 additions & 0 deletions RtMidi.Net/InteropServices/RtMidiBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,17 @@ public static string GetApiDisplayName(MidiApi api)
return name ?? string.Empty;
}

/// <summary>
/// Return the version of the RtMidi library.
/// </summary>
/// <returns> The version of the RtMidi library </returns>
public static string GetRtMidiVersion()
{
var ptr = RtMidiInterop.rtmidi_get_version();
var name = Marshal.PtrToStringUTF8(ptr);
return name ?? string.Empty;
}

/// <summary>
/// Return the compiled MIDI API having the given name.
/// </summary>
Expand Down
Loading

0 comments on commit 5e7b446

Please sign in to comment.