diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2009-07-19 22:30:36 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2009-07-19 22:30:36 +0000 |
commit | de58b257ae2444e224543a5da8003e7c717fa5bc (patch) | |
tree | d214dd9d9aed53dbe7994912c00651b72f0ac563 /libs/ardour/ardour/interpolation.h | |
parent | c1b2d8af7a6c036ae78aac00ca8b78f4b2d0d32b (diff) |
replace fixed-point linear interpolation with double-based version, thereby removing noise at low speeds and drift issues
git-svn-id: svn://localhost/ardour2/branches/3.0@5392 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/interpolation.h')
-rw-r--r-- | libs/ardour/ardour/interpolation.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/ardour/interpolation.h b/libs/ardour/ardour/interpolation.h index e398171d2b..1ebdafefa2 100644 --- a/libs/ardour/ardour/interpolation.h +++ b/libs/ardour/ardour/interpolation.h @@ -13,9 +13,9 @@ class Interpolation { double _speed, _target_speed; public: - Interpolation () { _speed = 1.0; } + Interpolation () { _speed = 1.0; _target_speed = 1.0; } - void set_speed (double new_speed) { _speed = new_speed; } + void set_speed (double new_speed) { _speed = new_speed; _target_speed = new_speed; } void set_target_speed (double new_speed) { _target_speed = new_speed; } double target_speed() const { return _target_speed; } |