diff options
author | David Robillard <d@drobilla.net> | 2006-08-13 03:40:04 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-08-13 03:40:04 +0000 |
commit | 0b572cdd84151335594965a3f0ed16f1665dfa56 (patch) | |
tree | 25818906a95bd0c47c190793d7924b75b5076fde /libs/ardour/session_click.cc | |
parent | a98a67120eea8ebb817eebea048affc182ea054e (diff) |
More signal path cleanup, IO now has one deliver_output function that should do the reasonable thing in all cases.
Including deliver MIDI.
You can now create a MIDI Track, run some MIDI through it, and toggle the mute button on and off, hearing either
silence or a large amount of stuck notes depending on your luck. Woooo.
git-svn-id: svn://localhost/ardour2/branches/midi@818 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_click.cc')
-rw-r--r-- | libs/ardour/session_click.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/ardour/session_click.cc b/libs/ardour/session_click.cc index b50720aa38..e04bb61c30 100644 --- a/libs/ardour/session_click.cc +++ b/libs/ardour/session_click.cc @@ -41,7 +41,6 @@ void Session::click (jack_nframes_t start, jack_nframes_t nframes, jack_nframes_t offset) { TempoMap::BBTPointList *points; - jack_nframes_t end; Sample *buf; if (_click_io == 0) { @@ -55,7 +54,7 @@ Session::click (jack_nframes_t start, jack_nframes_t nframes, jack_nframes_t off return; } - end = start + nframes; + const jack_nframes_t end = start + (jack_nframes_t)floor(nframes * _transport_speed); BufferSet& bufs = get_scratch_buffers(ChanCount(DataType::AUDIO, 1)); buf = bufs.get_audio(0).data(nframes); @@ -127,8 +126,8 @@ Session::click (jack_nframes_t start, jack_nframes_t nframes, jack_nframes_t off i = next; } - - _click_io->deliver_output (bufs, nframes, offset); + + _click_io->deliver_output (bufs, start, end, nframes, offset); } void |