upgrade to libremidi 5.1, raylib and raygui latest
This commit is contained in:
@@ -4,13 +4,12 @@
|
||||
#include <libremidi/detail/midi_in.hpp>
|
||||
#include <libremidi/detail/midi_stream_decoder.hpp>
|
||||
|
||||
#include <chrono>
|
||||
|
||||
namespace libremidi
|
||||
{
|
||||
class midi_in_jack final
|
||||
: public midi1::in_api
|
||||
, public jack_helpers
|
||||
, public jack_midi1
|
||||
, public error_handler
|
||||
{
|
||||
public:
|
||||
@@ -46,7 +45,8 @@ public:
|
||||
|
||||
stdx::error open_port(const input_port& port, std::string_view portName) override
|
||||
{
|
||||
if (auto err = create_local_port(*this, portName, JackPortIsInput); err != stdx::error{})
|
||||
if (auto err = create_local_port(*this, portName, port_type, JackPortIsInput);
|
||||
err != stdx::error{})
|
||||
return err;
|
||||
|
||||
if (int err = jack_connect(this->client, port.port_name.c_str(), jack_port_name(this->port));
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
|
||||
stdx::error open_virtual_port(std::string_view portName) override
|
||||
{
|
||||
return create_local_port(*this, portName, JackPortIsInput);
|
||||
return create_local_port(*this, portName, port_type, JackPortIsInput);
|
||||
}
|
||||
|
||||
stdx::error close_port() override { return do_close_port(); }
|
||||
@@ -96,8 +96,8 @@ public:
|
||||
this->client, ¤t_frames, ¤t_usecs, &next_usecs, &period_usecs);
|
||||
|
||||
// We have midi events in buffer
|
||||
uint32_t evCount = jack_midi_get_event_count(buff);
|
||||
for (uint32_t j = 0; j < evCount; j++)
|
||||
uint32_t ev_count = jack_midi_get_event_count(buff);
|
||||
for (uint32_t j = 0; j < ev_count; j++)
|
||||
{
|
||||
jack_midi_event_t event{};
|
||||
jack_midi_event_get(&event, buff, j);
|
||||
|
||||
Reference in New Issue
Block a user