working on win32 uwp! and libremidi update
This commit is contained in:
@@ -7,9 +7,6 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include <array>
|
||||
#include <thread>
|
||||
|
||||
namespace libremidi
|
||||
{
|
||||
|
||||
@@ -56,17 +53,20 @@ LIBREMIDI_INLINE libremidi::API get_compiled_api_by_name(std::string_view name)
|
||||
midi2::for_all_backends([&](auto b) { apis.push_back(b.API); });
|
||||
return apis;
|
||||
}
|
||||
|
||||
LIBREMIDI_INLINE midi_exception::~midi_exception() = default;
|
||||
LIBREMIDI_INLINE no_devices_found_error::~no_devices_found_error() = default;
|
||||
LIBREMIDI_INLINE invalid_device_error::~invalid_device_error() = default;
|
||||
LIBREMIDI_INLINE memory_error::~memory_error() = default;
|
||||
LIBREMIDI_INLINE invalid_parameter_error::~invalid_parameter_error() = default;
|
||||
LIBREMIDI_INLINE invalid_use_error::~invalid_use_error() = default;
|
||||
LIBREMIDI_INLINE driver_error::~driver_error() = default;
|
||||
LIBREMIDI_INLINE system_error::~system_error() = default;
|
||||
LIBREMIDI_INLINE thread_error::~thread_error() = default;
|
||||
|
||||
LIBREMIDI_INLINE
|
||||
libremidi::API midi_api(const std::any& conf)
|
||||
{
|
||||
libremidi::API ret = libremidi::API::UNSPECIFIED;
|
||||
midi_any::for_all_backends([&]<typename T>(T) {
|
||||
if (std::any_cast<typename T::midi_in_configuration>(&conf)
|
||||
|| std::any_cast<typename T::midi_out_configuration>(&conf)
|
||||
|| std::any_cast<typename T::midi_observer_configuration>(&conf))
|
||||
{
|
||||
ret = T::API;
|
||||
}
|
||||
});
|
||||
return ret;
|
||||
}
|
||||
LIBREMIDI_INLINE
|
||||
std::any midi_in_configuration_for(libremidi::API api)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user