diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-06-21 20:31:14 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-06-21 20:31:14 +0000 |
commit | 39becbeb70aa4ab82b963669d87995a32141981c (patch) | |
tree | 4124b69dbc082561e601377fb41109ee96216735 /libs/ardour/audio_port.cc | |
parent | 33d17f176b20e2ebc96e7bb05af5ff3984e71f1d (diff) |
smooth 0.5 second fade out during quit, plus MIDI panic to turn everything off (someone will want an opton for that, no doubt)
git-svn-id: svn://localhost/ardour2/branches/3.0@12814 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_port.cc')
-rw-r--r-- | libs/ardour/audio_port.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libs/ardour/audio_port.cc b/libs/ardour/audio_port.cc index 48a757fb42..240224ea5e 100644 --- a/libs/ardour/audio_port.cc +++ b/libs/ardour/audio_port.cc @@ -73,10 +73,18 @@ AudioBuffer& AudioPort::get_audio_buffer (pframes_t nframes) { /* caller must hold process lock */ - _buffer->set_data ((Sample *) jack_port_get_buffer (_jack_port, _cycle_nframes) + - _global_port_buffer_offset + _port_buffer_offset, nframes); + _buffer->set_data ((Sample *) jack_port_get_buffer (_jack_port, _cycle_nframes) + + _global_port_buffer_offset + _port_buffer_offset, nframes); return *_buffer; } +Sample* +AudioPort::engine_get_whole_audio_buffer () +{ + /* caller must hold process lock */ + return (Sample *) jack_port_get_buffer (_jack_port, _cycle_nframes); +} + + |