mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 08:39:46 +02:00
Bug 1904 - Audio offset not honored in Export/Export Multiple/Export Selection
This commit is contained in:
parent
da66806bc0
commit
6e5437587b
@ -554,9 +554,23 @@ bool Exporter::ExamineTracks()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mT0 < earliestBegin)
|
// The skipping of silent space could be cleverer and take
|
||||||
mT0 = earliestBegin;
|
// into account clips.
|
||||||
|
// As implemented now, it can only skip initial silent space that
|
||||||
|
// has no clip before it, and terminal silent space that has no clip
|
||||||
|
// after it.
|
||||||
|
if (mT0 < earliestBegin){
|
||||||
|
// Bug 1904
|
||||||
|
// Previously we always skipped initial silent space.
|
||||||
|
// Now skipping it is an opt-in option.
|
||||||
|
bool skipSilenceAtBeginning;
|
||||||
|
gPrefs->Read(wxT("/AudioFiles/SkipSilenceAtBeginning"),
|
||||||
|
&skipSilenceAtBeginning, false);
|
||||||
|
if (skipSilenceAtBeginning)
|
||||||
|
mT0 = earliestBegin;
|
||||||
|
}
|
||||||
|
|
||||||
|
// We still skip silent space at the end
|
||||||
if (mT1 > latestEnd)
|
if (mT1 > latestEnd)
|
||||||
mT1 = latestEnd;
|
mT1 = latestEnd;
|
||||||
|
|
||||||
|
@ -93,6 +93,10 @@ void ImportExportPrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
S.TieCheckBox(_("S&how Metadata Tags editor before export"),
|
S.TieCheckBox(_("S&how Metadata Tags editor before export"),
|
||||||
wxT("/AudioFiles/ShowId3Dialog"),
|
wxT("/AudioFiles/ShowId3Dialog"),
|
||||||
true);
|
true);
|
||||||
|
/* i18n-hint 'silent space' is space on the tracks with no audio in it*/
|
||||||
|
S.TieCheckBox(_("S&kip silent space at the beginning"),
|
||||||
|
wxT("/AudioFiles/SkipSilenceAtBeginning"),
|
||||||
|
false);
|
||||||
}
|
}
|
||||||
S.EndStatic();
|
S.EndStatic();
|
||||||
#ifdef USE_MIDI
|
#ifdef USE_MIDI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user