diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-05-03 23:28:57 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-05-03 23:28:57 +0000 |
commit | a8da89d745c6a7e7d4c20dfcfb16b2537d767428 (patch) | |
tree | 06fb6cc1795ef89a7ed847395c550b6215e253df /libs/ardour/session_click.cc | |
parent | 5a1ca70f07aeb999ba3f0f09dbd49f1d50505f3c (diff) |
optimize some performance bottlenecks; remove jack_nframes_t that crept back into the code
git-svn-id: svn://localhost/ardour2/branches/midi@1779 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_click.cc')
-rw-r--r-- | libs/ardour/session_click.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/session_click.cc b/libs/ardour/session_click.cc index 9dccce04f2..fb51f22564 100644 --- a/libs/ardour/session_click.cc +++ b/libs/ardour/session_click.cc @@ -53,10 +53,10 @@ Session::click (nframes_t start, nframes_t nframes, nframes_t offset) return; } - const jack_nframes_t end = start + (jack_nframes_t)floor(nframes * _transport_speed); + const nframes_t end = start + (nframes_t)floor(nframes * _transport_speed); BufferSet& bufs = get_scratch_buffers(ChanCount(DataType::AUDIO, 1)); - buf = bufs.get_audio(0).data(nframes); + buf = bufs.get_audio(0).data(); points = _tempo_map->get_points (start, end); if (points == 0) { |