That doesn’t work when I have Audacity’s “Recording Device” pointing to my virtual Loopback device which has 3 channels and I have Audacity’s “Channels” set to 3.
From the code, the behaviour that you observe appears to be what is intended, though I tend to agree that it is not the expected behaviour. I would not expect the tracks to be minimised when “Auto-fit track height” is enabled.
It’s not that it “doesn’t work”. It works exactly the way the code tells it to work.
This is the relevant bit of code:
if (recordingChannels > 2) {
newTrack->SetMinimized(true);
}
which is saying, “if more than 2 channels are being recorded, set the tracks to collapsed”.
I presume that the reason for this design decision, is the assumption that if the recording is not mono or stereo but “multi-channel”, that the project is likely to end up with a lot of tracks, so the tracks are set “collapsed” by default to allow more tracks to be visible on screen. I’d also guess that it was designed this way before the option to “Auto-fit track height” existed.
In my view, the more expected behaviour would be for the code to be:
if ((recordingChannels > 2) && !(p->GetTracksFitVerticallyZoomed())) {
newTrack->SetMinimized(true);
}
which is saying “if more than 2 channels are being recorded, set the tracks to collapsed, unless the user has selected the preference to Auto-fit track height”.