-
- if (receives_input ()) {
-
- /* Get a pointer to the audio data @ offset + _port_offset within the JACK port buffer and store
- it in our _buffer member.
-
- Note that offset is expected to be zero in almost all cases.
- */
-
- _buffer->set_data ((Sample *) jack_port_get_buffer (_jack_port, nframes) + offset + _port_offset, nframes);
- }
-
- /* output ports set their _buffer data information during ::cycle_start()
- */
-
+ _buffer->set_data ((Sample *) port_engine.get_buffer (_port_handle, _cycle_nframes) +
+ _global_port_buffer_offset + _port_buffer_offset, nframes);