mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-27 17:07:40 +01:00
[Summary] Fixed defects with stereo out/ multi out states saving restoring
[Details] When swithced back to 2 channel device from another device in stereo out mode channel configuration could be incorrect; System didn't save stereo out mode channel configuration correctly [git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 464136]
This commit is contained in:
parent
fc2527a116
commit
5a047cc6ee
1 changed files with 3 additions and 2 deletions
|
|
@ -826,7 +826,7 @@ EngineStateController::_update_device_channels_state(bool reconnect_session_rout
|
|||
|
||||
// update audio output states (stereo out mode)
|
||||
new_output_states.clear();
|
||||
ChannelStateList &output_stereo_states = _current_state->multi_out_channel_states;
|
||||
ChannelStateList &output_stereo_states = _current_state->stereo_out_channel_states;
|
||||
|
||||
output_iter = phys_audio_outputs.begin();
|
||||
for (; output_iter != phys_audio_outputs.end(); ++output_iter) {
|
||||
|
|
@ -878,7 +878,8 @@ EngineStateController::_refresh_stereo_out_channel_states()
|
|||
pending_active_channels = 0;
|
||||
}
|
||||
|
||||
for (; iter != output_states.end(); ++iter) {
|
||||
// drop the rest of the states to false (until we reach the end or first existing active channel)
|
||||
for (; iter != output_states.end() && iter != active_iter; ++iter) {
|
||||
if (pending_active_channels) {
|
||||
iter->active = true;
|
||||
--pending_active_channels;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue