projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add method to find subgroup_bus
[ardour.git]
/
libs
/
ardour
/
mididm.cc
diff --git
a/libs/ardour/mididm.cc
b/libs/ardour/mididm.cc
index 0888d154e915cb6a7d63a11da47bc8e9b96a8113..14684792fddbff117bfc9cc830aa94bb42f6ca40 100644
(file)
--- a/
libs/ardour/mididm.cc
+++ b/
libs/ardour/mididm.cc
@@
-21,7
+21,7
@@
using namespace ARDOUR;
using namespace ARDOUR;
-MIDIDM::MIDIDM (
fram
ecnt_t sample_rate)
+MIDIDM::MIDIDM (
sampl
ecnt_t sample_rate)
: _sample_rate (sample_rate)
, _monotonic_cnt (sample_rate)
, _last_signal_tme (0)
: _sample_rate (sample_rate)
, _monotonic_cnt (sample_rate)
, _last_signal_tme (0)
@@
-37,7
+37,7
@@
MIDIDM::MIDIDM (framecnt_t sample_rate)
}
int64_t
}
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)
{
/* 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
}
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;
{
#define MODTC (2097152) // 1<<(3*7)
const int64_t tc = (_monotonic_cnt + timestamp) & 0x001FFFFF;
@@
-78,7
+78,7
@@
int MIDIDM::process (pframes_t nframes, PortEngine &pe, void *midi_in, void *mid
obuf[1] = (_monotonic_cnt) & 0x7f;
obuf[2] = (_monotonic_cnt >> 7) & 0x7f;
pe.midi_event_put (midi_out, 0, obuf, 3);
obuf[1] = (_monotonic_cnt) & 0x7f;
obuf[2] = (_monotonic_cnt >> 7) & 0x7f;
pe.midi_event_put (midi_out, 0, obuf, 3);
-#else // sysex MTC
fram
e
+#else // sysex MTC
sampl
e
uint8_t obuf[10];
obuf[0] = 0xf0;
obuf[1] = 0x7f;
uint8_t obuf[10];
obuf[0] = 0xf0;
obuf[1] = 0x7f;
@@
-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;
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);
int64_t tdiff;
pe.midi_event_get (timestamp, size, &buf, midi_in, n);