Fix speed quietning to respect the current setting.
git-svn-id: svn://localhost/ardour2/trunk@957 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f24e8e9e56
commit
af441a832e
@ -367,15 +367,7 @@ ARDOUR_UI::toggle_StopTransportAtEndOfSession()
|
||||
void
|
||||
ARDOUR_UI::toggle_GainReduceFastTransport()
|
||||
{
|
||||
Glib::RefPtr<Action> act = ActionManager::get_action ("options", "GainReduceFastTransport");
|
||||
if (act) {
|
||||
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
|
||||
if (tact->get_active()) {
|
||||
Config->set_quieten_at_speed (0.251189); // -12dB reduction for ffwd or rewind
|
||||
} else {
|
||||
Config->set_quieten_at_speed (1.0); /* no change */
|
||||
}
|
||||
}
|
||||
ActionManager::toggle_config_state ("options", "GainReduceFastTransport", &Configuration::set_quieten_at_speed, &Configuration::get_quieten_at_speed);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -627,7 +627,9 @@ Route::process_output_buffers (vector<Sample*>& bufs, uint32_t nbufs,
|
||||
|
||||
} else {
|
||||
|
||||
if (_session.transport_speed() > 1.5f || _session.transport_speed() < -1.5f) {
|
||||
if ((_session.transport_speed() > 1.5f ||
|
||||
_session.transport_speed() < -1.5f) &&
|
||||
Config->get_quieten_at_speed()) {
|
||||
pan (bufs, nbufs, nframes, offset, speed_quietning);
|
||||
} else {
|
||||
// cerr << _name << " panner state = " << _panner->automation_state() << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user