libremidi update to v5.4.3 and added virtual midi out as default
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
#pragma once
|
||||
#include <libremidi/config.hpp>
|
||||
|
||||
#if !defined(_MSC_VER)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#endif
|
||||
#include <libremidi/system_error2.hpp>
|
||||
#if !defined(_MSC_VER)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#include <functional>
|
||||
#include <string_view>
|
||||
@@ -13,10 +17,15 @@
|
||||
|
||||
#if __has_include(<source_location>) && (__cpp_lib_source_location >= 201907L)
|
||||
#include <source_location>
|
||||
namespace libremidi { using source_location = std::source_location; }
|
||||
NAMESPACE_LIBREMIDI
|
||||
{
|
||||
using source_location = std::source_location;
|
||||
}
|
||||
#else
|
||||
namespace libremidi {
|
||||
struct source_location {
|
||||
NAMESPACE_LIBREMIDI
|
||||
{
|
||||
struct source_location
|
||||
{
|
||||
static source_location current() noexcept { return {}; }
|
||||
int line() const noexcept { return -1; }
|
||||
int offset() const noexcept { return -1; }
|
||||
@@ -26,9 +35,9 @@ struct source_location {
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace libremidi
|
||||
NAMESPACE_LIBREMIDI
|
||||
{
|
||||
inline auto from_errc(int ret) noexcept
|
||||
inline auto from_errc(int64_t ret) noexcept
|
||||
{
|
||||
return static_cast<std::errc>(-ret);
|
||||
}
|
||||
@@ -40,8 +49,10 @@ inline auto from_errc(int ret) noexcept
|
||||
Note that class behaviour is undefined after a critical error (not
|
||||
a warning) is reported.
|
||||
*/
|
||||
using midi_error_callback = std::function<void(std::string_view errorText, const source_location&)>;
|
||||
using midi_warning_callback = std::function<void(std::string_view errorText, const source_location&)>;
|
||||
using midi_error_callback
|
||||
= std::function<void(std::string_view errorText, const source_location&)>;
|
||||
using midi_warning_callback
|
||||
= std::function<void(std::string_view errorText, const source_location&)>;
|
||||
}
|
||||
|
||||
#if !defined(LIBREMIDI_LOG)
|
||||
|
||||
Reference in New Issue
Block a user