libremidi update to v5.4.3 and added virtual midi out as default
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <libremidi/detail/midi_in.hpp>
|
||||
#include <libremidi/detail/midi_stream_decoder.hpp>
|
||||
|
||||
namespace libremidi
|
||||
NAMESPACE_LIBREMIDI
|
||||
{
|
||||
class midi_in_core final
|
||||
: public midi1::in_api
|
||||
@@ -25,8 +25,7 @@ public:
|
||||
if (auto result = init_client(configuration); result != noErr)
|
||||
{
|
||||
libremidi_handle_error(
|
||||
this->configuration,
|
||||
"error creating MIDI client object: " + std::to_string(result));
|
||||
this->configuration, "error creating MIDI client object: " + std::to_string(result));
|
||||
client_open_ = from_osstatus(result);
|
||||
return;
|
||||
}
|
||||
@@ -64,8 +63,7 @@ public:
|
||||
{
|
||||
close_client(*this);
|
||||
libremidi_handle_error(
|
||||
this->configuration, "error creating macOS MIDI input port: "
|
||||
+ std::to_string(result));
|
||||
this->configuration, "error creating macOS MIDI input port: " + std::to_string(result));
|
||||
return from_osstatus(result);
|
||||
}
|
||||
|
||||
@@ -74,8 +72,7 @@ public:
|
||||
{
|
||||
MIDIPortDispose(port);
|
||||
close_client(*this);
|
||||
libremidi_handle_error(
|
||||
this->configuration, "error connecting macOS MIDI input port.");
|
||||
libremidi_handle_error(this->configuration, "error connecting macOS MIDI input port.");
|
||||
return from_osstatus(result);
|
||||
}
|
||||
|
||||
@@ -105,10 +102,7 @@ public:
|
||||
return stdx::error{};
|
||||
}
|
||||
|
||||
stdx::error close_port() override
|
||||
{
|
||||
return coremidi_data::close_port();
|
||||
}
|
||||
stdx::error close_port() override { return coremidi_data::close_port(); }
|
||||
|
||||
timestamp absolute_timestamp() const noexcept override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user