diff options
author | David Robillard <d@drobilla.net> | 2008-10-07 17:33:05 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-10-07 17:33:05 +0000 |
commit | ff73f4e5e156569bb767313fbfa1ed2b579a6751 (patch) | |
tree | 719daefdbb2367e97a9e34c020d058ad301d93fd /libs/ardour/audio_diskstream.cc | |
parent | d64ff6b659eeb5b552dd2f7c94011b75638060de (diff) |
Audio diskstream fix from torbenh.
git-svn-id: svn://localhost/ardour2/branches/3.0@3876 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_diskstream.cc')
-rw-r--r-- | libs/ardour/audio_diskstream.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/audio_diskstream.cc b/libs/ardour/audio_diskstream.cc index 2953c9e074..e9f4b9ea15 100644 --- a/libs/ardour/audio_diskstream.cc +++ b/libs/ardour/audio_diskstream.cc @@ -206,6 +206,18 @@ AudioDiskstream::non_realtime_input_change () } void +AudioDiskstream::non_realtime_locate (nframes_t location) +{ + /* now refill channel buffers */ + + if (speed() != 1.0f || speed() != -1.0f) { + seek ((nframes_t) (location * (double) speed())); + } else { + seek (location); + } +} + +void AudioDiskstream::get_input_sources () { boost::shared_ptr<ChannelList> c = channels.reader(); |