rename method argument to better reflect its intended role
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 4 Nov 2019 19:52:34 +0000 (12:52 -0700)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 4 Nov 2019 19:52:34 +0000 (12:52 -0700)
libs/ardour/audioengine.cc

index c7e4efa1d13faaa5e9105e014d4347713b36d81b..a491c9cc354851bcb114b6fa104e37f06f4a6663 100644 (file)
@@ -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 */