Skip to content

Commit

Permalink
Merge pull request #299 from trueroad/add-windows-uwp
Browse files Browse the repository at this point in the history
Add Windows UWP MIDI API to enable BLE MIDI (Bluetooth MIDI)
  • Loading branch information
garyscavone committed Jun 15, 2023
2 parents f683e03 + a3e7909 commit 5975dbe
Show file tree
Hide file tree
Showing 51 changed files with 2,831 additions and 842 deletions.
825 changes: 823 additions & 2 deletions RtMidi.cpp

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion RtMidi.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ class RTMIDI_DLL_PUBLIC RtMidi
WINDOWS_MM, /*!< The Microsoft Multimedia MIDI API. */
RTMIDI_DUMMY, /*!< A compilable but non-functional API. */
WEB_MIDI_API, /*!< W3C Web MIDI API. */
WINDOWS_UWP, /*!< The Microsoft Universal Windows Platform MIDI API. */
NUM_APIS /*!< Number of values in this enum. */
};

Expand Down Expand Up @@ -559,7 +560,7 @@ class RTMIDI_DLL_PUBLIC MidiInApi : public MidiApi
void setCallback( RtMidiIn::RtMidiCallback callback, void *userData );
void cancelCallback( void );
virtual void ignoreTypes( bool midiSysex, bool midiTime, bool midiSense );
double getMessage( std::vector<unsigned char> *message );
virtual double getMessage( std::vector<unsigned char> *message );
virtual void setBufferSize( unsigned int size, unsigned int count );

// A MIDI structure used internally by the class to store incoming
Expand Down
5 changes: 5 additions & 0 deletions msw/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.vs
Debug/
Release/
x64/Debug/
x64/Release/
18 changes: 17 additions & 1 deletion msw/readme
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
This directory contains a Visual Studio 2008 project, contributed by Jason Champion, to build rtmidi as a library. The library builds to the <rtmidi-x.x.x>\lib directory.
This directory contains a Visual Studio Community 2019 solution/project.

* rtmidilib.sln
+ Solution
* rtmidilib.vcxproj
+ Project to build as a static library.

The static library builds to the following path.

* `Debug/rtmidilib.lib`
+ x86 Debug
* `Release/rtmidilib.lib`
+ x86 Release
* `x64/Debug/rtmidilib.lib`
+ x64 Debug
* `x64/Release/rtmidilib.lib`
+ x64 Release
29 changes: 20 additions & 9 deletions msw/rtmidilib.sln
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rtmidilib", "rtmidilib.vcproj", "{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}"
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.32802.440
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rtmidilib", "rtmidilib.vcxproj", "{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}.Debug|Win32.ActiveCfg = Debug|Win32
{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}.Debug|Win32.Build.0 = Debug|Win32
{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}.Release|Win32.ActiveCfg = Release|Win32
{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}.Release|Win32.Build.0 = Release|Win32
{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}.Debug|x64.ActiveCfg = Debug|x64
{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}.Debug|x64.Build.0 = Debug|x64
{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}.Debug|x86.ActiveCfg = Debug|Win32
{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}.Debug|x86.Build.0 = Debug|Win32
{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}.Release|x64.ActiveCfg = Release|x64
{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}.Release|x64.Build.0 = Release|x64
{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}.Release|x86.ActiveCfg = Release|Win32
{EBFE5EB3-182A-47A6-922B-52ECF777F6A3}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3DABB9F0-BBBD-49B4-8097-A45FCAC07F24}
EndGlobalSection
EndGlobal
186 changes: 0 additions & 186 deletions msw/rtmidilib.vcproj

This file was deleted.

Loading

0 comments on commit 5975dbe

Please sign in to comment.