summaryrefslogtreecommitdiff
path: root/libs/ardour/audio_port.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/audio_port.cc')
-rw-r--r--libs/ardour/audio_port.cc23
1 files changed, 2 insertions, 21 deletions
diff --git a/libs/ardour/audio_port.cc b/libs/ardour/audio_port.cc
index 2250c7f2a7..ae64995000 100644
--- a/libs/ardour/audio_port.cc
+++ b/libs/ardour/audio_port.cc
@@ -23,8 +23,8 @@
using namespace ARDOUR;
using namespace std;
-jack_nframes_t AudioPort::_short_over_length = 2;
-jack_nframes_t AudioPort::_long_over_length = 10;
+nframes_t AudioPort::_short_over_length = 2;
+nframes_t AudioPort::_long_over_length = 10;
AudioPort::AudioPort(jack_port_t* p)
: Port(p)
@@ -51,23 +51,4 @@ AudioPort::reset()
reset_meters ();
}
-void
-AudioPort::cycle_start (jack_nframes_t nframes)
-{
- if (_flags & JackPortIsOutput) {
- const bool silent = _buffer.silent();
- // FIXME: do nothing, we can cache the value (but capacity needs to be set for MIDI)
- _buffer.set_data((Sample*)jack_port_get_buffer (_port, nframes), nframes);
- if (silent) {
- _buffer.silence(nframes);
- }
- } else {
- _buffer.set_data((Sample*)jack_port_get_buffer (_port, nframes), nframes);
- }
-}
-void
-AudioPort::cycle_end()
-{
- // whatever...
-}