libremidi update to v5.4.3 and added virtual midi out as default
This commit is contained in:
@@ -7,13 +7,14 @@
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
#include <unknwn.h>
|
||||
|
||||
#include <winrt/Windows.Devices.Enumeration.h>
|
||||
#include <winrt/Windows.Devices.Midi.h>
|
||||
#include <winrt/Windows.Foundation.h>
|
||||
#include <winrt/Windows.Storage.Streams.h>
|
||||
|
||||
namespace libremidi
|
||||
NAMESPACE_LIBREMIDI
|
||||
{
|
||||
inline void winrt_init()
|
||||
{
|
||||
@@ -23,8 +24,6 @@ inline void winrt_init()
|
||||
// winrt::init_apartment();
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
using namespace winrt;
|
||||
using namespace winrt::Windows::Foundation;
|
||||
using namespace winrt::Windows::Devices::Midi;
|
||||
@@ -36,7 +35,7 @@ using namespace winrt::Windows::Storage::Streams;
|
||||
// get() function from winrt is that we avoid an assertion if waiting
|
||||
// from the STA thread.
|
||||
template <typename T>
|
||||
auto get(T const& async)
|
||||
LIBREMIDI_STATIC auto get(T const& async)
|
||||
{
|
||||
if (async.Status() != AsyncStatus::Completed)
|
||||
{
|
||||
@@ -60,4 +59,3 @@ auto get(T const& async)
|
||||
return async.GetResults();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user