From 47672fceec568949d8dcf3f2be516a644ff4ccbd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 4 Nov 2019 12:52:34 -0700 Subject: [PATCH] rename method argument to better reflect its intended role --- libs/ardour/audioengine.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index c7e4efa1d1..a491c9cc35 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -142,7 +142,7 @@ AudioEngine::create () } void -AudioEngine::split_cycle (pframes_t offset) +AudioEngine::split_cycle (pframes_t nframes) { /* caller must hold process lock */ @@ -161,7 +161,7 @@ AudioEngine::split_cycle (pframes_t offset) * normal processing. * * However some non-route ports may contain MIDI events - * from current Port::port_offset() .. Port::port_offset() + offset. + * from current Port::port_offset() .. Port::port_offset() + nframes. * If those events are not pushed to ports before the cycle split, * MidiPort::flush_buffers will drop them (event time is out of bounds). * @@ -170,10 +170,10 @@ AudioEngine::split_cycle (pframes_t offset) * all events as-is. */ for (Ports::iterator i = p->begin(); i != p->end(); ++i) { - i->second->flush_buffers (offset); + i->second->flush_buffers (nframes); } - Port::increment_global_port_buffer_offset (offset); + Port::increment_global_port_buffer_offset (nframes); /* tell all Ports that we're going to start a new (split) cycle */