diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-05 15:04:05 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-05 15:36:36 +0200 |
commit | 2b7c585dbae9c989d35e2884060aad4b0270f90e (patch) | |
tree | 37e0f7fe263ad221ad29f4497383bea6ce0946f2 /libs/backends/jack | |
parent | f9aff37623ba17a80371572fcba38515ea9b78ca (diff) |
Update backend API: read-only MIDI input buffers
Diffstat (limited to 'libs/backends/jack')
-rw-r--r-- | libs/backends/jack/jack_audiobackend.h | 2 | ||||
-rw-r--r-- | libs/backends/jack/jack_portengine.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/backends/jack/jack_audiobackend.h b/libs/backends/jack/jack_audiobackend.h index 847b21b767..2c67dc72fd 100644 --- a/libs/backends/jack/jack_audiobackend.h +++ b/libs/backends/jack/jack_audiobackend.h @@ -175,7 +175,7 @@ class JACKAudioBackend : public AudioBackend { return true; } - int midi_event_get (pframes_t& timestamp, size_t& size, uint8_t** buf, void* port_buffer, uint32_t event_index); + int midi_event_get (pframes_t& timestamp, size_t& size, uint8_t const** buf, void* port_buffer, uint32_t event_index); int midi_event_put (void* port_buffer, pframes_t timestamp, const uint8_t* buffer, size_t size); uint32_t get_midi_event_count (void* port_buffer); void midi_clear (void* port_buffer); diff --git a/libs/backends/jack/jack_portengine.cc b/libs/backends/jack/jack_portengine.cc index a73f4608aa..dfa2bdad11 100644 --- a/libs/backends/jack/jack_portengine.cc +++ b/libs/backends/jack/jack_portengine.cc @@ -488,7 +488,7 @@ JACKAudioBackend::disconnect_all (PortHandle port) } int -JACKAudioBackend::midi_event_get (pframes_t& timestamp, size_t& size, uint8_t** buf, void* port_buffer, uint32_t event_index) +JACKAudioBackend::midi_event_get (pframes_t& timestamp, size_t& size, uint8_t const** buf, void* port_buffer, uint32_t event_index) { jack_midi_event_t ev; int ret; |