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/ardour/mididm.cc | |
parent | f9aff37623ba17a80371572fcba38515ea9b78ca (diff) |
Update backend API: read-only MIDI input buffers
Diffstat (limited to 'libs/ardour/mididm.cc')
-rw-r--r-- | libs/ardour/mididm.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/mididm.cc b/libs/ardour/mididm.cc index 0888d154e9..0b95fc1bd5 100644 --- a/libs/ardour/mididm.cc +++ b/libs/ardour/mididm.cc @@ -37,7 +37,7 @@ MIDIDM::MIDIDM (framecnt_t sample_rate) } int64_t -MIDIDM::parse_mclk (uint8_t* buf, pframes_t timestamp) const +MIDIDM::parse_mclk (uint8_t const * const buf, pframes_t timestamp) const { /* calculate time difference */ #define MODCLK (16384) // 1<<(2*7) @@ -52,7 +52,7 @@ MIDIDM::parse_mclk (uint8_t* buf, pframes_t timestamp) const } int64_t -MIDIDM::parse_mtc (uint8_t* buf, pframes_t timestamp) const +MIDIDM::parse_mtc (uint8_t const * const buf, pframes_t timestamp) const { #define MODTC (2097152) // 1<<(3*7) const int64_t tc = (_monotonic_cnt + timestamp) & 0x001FFFFF; @@ -101,7 +101,7 @@ int MIDIDM::process (pframes_t nframes, PortEngine &pe, void *midi_in, void *mid for (pframes_t n = 0; n < nevents; ++n) { pframes_t timestamp; size_t size; - uint8_t* buf; + uint8_t const* buf; int64_t tdiff; pe.midi_event_get (timestamp, size, &buf, midi_in, n); |