summaryrefslogtreecommitdiff
path: root/libs/midi++2/port.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-03 22:26:29 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-03 22:26:29 +0000
commit73192bc1a7ea55fa1864dc3826845b15c00dd2ec (patch)
treec0039f3f5a848aed6e880abf11519dad855fa899 /libs/midi++2/port.cc
parent74b4a3c77b08dc1e58274875604eb73e8492fa93 (diff)
Remove all use of nframes_t.
git-svn-id: svn://localhost/ardour2/branches/3.0@8166 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/port.cc')
-rw-r--r--libs/midi++2/port.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/midi++2/port.cc b/libs/midi++2/port.cc
index 600886a94d..539d5c49cb 100644
--- a/libs/midi++2/port.cc
+++ b/libs/midi++2/port.cc
@@ -119,7 +119,7 @@ Port::~Port ()
}
void
-Port::parse (nframes_t timestamp)
+Port::parse (framecnt_t timestamp)
{
byte buf[512];
@@ -171,7 +171,7 @@ Port::clock (timestamp_t timestamp)
}
void
-Port::cycle_start (nframes_t nframes)
+Port::cycle_start (pframes_t nframes)
{
assert (_jack_port);
@@ -190,12 +190,12 @@ Port::cycle_start (nframes_t nframes)
if (receives_input()) {
void* jack_buffer = jack_port_get_buffer(_jack_port, nframes);
- const nframes_t event_count = jack_midi_get_event_count(jack_buffer);
+ const pframes_t event_count = jack_midi_get_event_count(jack_buffer);
jack_midi_event_t ev;
timestamp_t cycle_start_frame = jack_last_frame_time (_jack_client);
- for (nframes_t i = 0; i < event_count; ++i) {
+ for (pframes_t i = 0; i < event_count; ++i) {
jack_midi_event_get (&ev, jack_buffer, i);
input_fifo.write (cycle_start_frame + ev.time, (Evoral::EventType) 0, ev.size, ev.buffer);
}