mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-30 23:49:28 +02:00
Bug 2345 - "Ignore blank space" Preference fails on Export Multiple based on "Tracks"
This commit is contained in:
parent
b68c417d8e
commit
38da22c18b
@ -912,13 +912,16 @@ ProgressResult ExportMultipleDialog::ExportMultipleByTrack(bool byName,
|
||||
|
||||
bool anySolo = !(( mTracks->Any<const WaveTrack>() + &WaveTrack::GetSolo ).empty());
|
||||
|
||||
bool skipSilenceAtBeginning;
|
||||
gPrefs->Read(wxT("/AudioFiles/SkipSilenceAtBeginning"), &skipSilenceAtBeginning, false);
|
||||
|
||||
/* Examine all tracks in turn, collecting export information */
|
||||
for (auto tr : mTracks->Leaders<WaveTrack>() -
|
||||
(anySolo ? &WaveTrack::GetNotSolo : &WaveTrack::GetMute)) {
|
||||
|
||||
// Get the times for the track
|
||||
auto channels = TrackList::Channels(tr);
|
||||
setting.t0 = channels.min( &Track::GetStartTime );
|
||||
setting.t0 = skipSilenceAtBeginning ? channels.min(&Track::GetStartTime) : 0;
|
||||
setting.t1 = channels.max( &Track::GetEndTime );
|
||||
|
||||
// number of export channels?
|
||||
|
Loading…
x
Reference in New Issue
Block a user