Somewhat uncertain fix to playhead misbehaviour in rewind.
git-svn-id: svn://localhost/ardour2/branches/3.0@8732 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
7bff381ee7
commit
6be56d78b1
@ -834,6 +834,16 @@ Session::process_without_events (pframes_t nframes)
|
|||||||
|
|
||||||
get_track_statistics ();
|
get_track_statistics ();
|
||||||
|
|
||||||
|
/* XXX: I'm not sure whether this is correct, but at least it
|
||||||
|
matches process_with_events, so that this new frames_moved
|
||||||
|
is -ve when transport speed is -ve. This means that the
|
||||||
|
transport position is updated correctly when we are in
|
||||||
|
reverse. It seems a bit wrong that we're not using the
|
||||||
|
interpolator to compute this.
|
||||||
|
*/
|
||||||
|
|
||||||
|
frames_moved = (framecnt_t) floor (_transport_speed * nframes);
|
||||||
|
|
||||||
if (frames_moved < 0) {
|
if (frames_moved < 0) {
|
||||||
decrement_transport_position (-frames_moved);
|
decrement_transport_position (-frames_moved);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user