diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-10-09 15:50:44 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-10-09 15:50:44 +0000 |
commit | 0d0f71ee92fb7ce53fbcb8c7b0cd93b1cdf3529f (patch) | |
tree | ae37075200040cbbd430b98ee3cbce59eaef51ca /libs/ardour/io.cc | |
parent | 8011cbf5f8e4181ac39e4140e681fcad531f4a7c (diff) |
fix abort-capture path, including many subtle issues with shared_ptr<>; remove old automation feedback code; make new automation feedback code slightly configurable ; fix zoom focus options for playhead + edit cursor ; prevent zoom < 2 samples per pixel to avoid crashes ; peak building now uses shared_ptr<Source> not Source*
git-svn-id: svn://localhost/ardour2/trunk@959 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r-- | libs/ardour/io.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 34070f3dff..b6c3648cda 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -61,7 +61,6 @@ using namespace PBD; static float current_automation_version_number = 1.0; -nframes_t IO::_automation_interval = 0; const string IO::state_node_name = "IO"; bool IO::connecting_legal = false; bool IO::ports_legal = false; @@ -127,8 +126,6 @@ IO::IO (Session& s, string name, apply_gain_automation = false; - last_automation_snapshot = 0; - _gain_automation_state = Off; _gain_automation_style = Absolute; @@ -2513,7 +2510,6 @@ IO::set_gain_automation_state (AutoState state) if (state != _gain_automation_curve.automation_state()) { changed = true; - last_automation_snapshot = 0; _gain_automation_curve.set_automation_state (state); if (state != Off) { @@ -2612,21 +2608,6 @@ IO::end_pan_touch (uint32_t which) } void -IO::automation_snapshot (nframes_t now) -{ - if (last_automation_snapshot > now || (now - last_automation_snapshot) > _automation_interval) { - - if (gain_automation_recording()) { - _gain_automation_curve.rt_add (now, gain()); - } - - _panner->snapshot (now); - - last_automation_snapshot = now; - } -} - -void IO::transport_stopped (nframes_t frame) { _gain_automation_curve.reposition_for_rt_add (frame); |