mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-04 22:29:27 +02:00
Make ChangeSpeed/SoundTouch/SBSMS handle sync-selected tracks
the old way (now that it's easy to select all the sync-selected ones)
This commit is contained in:
parent
f6e158b87a
commit
5b539c71f0
@ -126,8 +126,7 @@ bool EffectChangeSpeed::Process()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (t->GetKind() == Track::Wave &&
|
else if (t->GetKind() == Track::Wave && t->GetSelected())
|
||||||
(t->GetSelected() || t->IsSynchroSelected()))
|
|
||||||
{
|
{
|
||||||
WaveTrack *pOutWaveTrack = (WaveTrack*)t;
|
WaveTrack *pOutWaveTrack = (WaveTrack*)t;
|
||||||
//Get start and end times from track
|
//Get start and end times from track
|
||||||
@ -154,7 +153,7 @@ bool EffectChangeSpeed::Process()
|
|||||||
}
|
}
|
||||||
mCurTrackNum++;
|
mCurTrackNum++;
|
||||||
}
|
}
|
||||||
else if (t->IsSynchroSelected() && !t->GetSelected())
|
else if (t->IsSynchroSelected())
|
||||||
{
|
{
|
||||||
t->SyncAdjust(mT1, mT0 + (mT1 - mT0) * mFactor);
|
t->SyncAdjust(mT1, mT0 + (mT1 - mT0) * mFactor);
|
||||||
}
|
}
|
||||||
|
@ -200,17 +200,13 @@ bool EffectSBSMS::Process()
|
|||||||
while (t != NULL) {
|
while (t != NULL) {
|
||||||
if (t->GetKind() == Track::Label &&
|
if (t->GetKind() == Track::Label &&
|
||||||
(t->GetSelected() || (mustSync && t->IsSynchroSelected())) )
|
(t->GetSelected() || (mustSync && t->IsSynchroSelected())) )
|
||||||
{
|
|
||||||
if (t->GetSelected() || t->IsSynchroSelected())
|
|
||||||
{
|
{
|
||||||
if (!ProcessLabelTrack(t)) {
|
if (!ProcessLabelTrack(t)) {
|
||||||
bGoodResult = false;
|
bGoodResult = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
else if (t->GetKind() == Track::Wave && t->GetSelected() )
|
||||||
else if (t->GetKind() == Track::Wave &&
|
|
||||||
(t->GetSelected() || (mustSync && t->IsSynchroSelected())) )
|
|
||||||
{
|
{
|
||||||
WaveTrack* leftTrack = (WaveTrack*)t;
|
WaveTrack* leftTrack = (WaveTrack*)t;
|
||||||
|
|
||||||
|
@ -68,8 +68,7 @@ bool EffectSoundTouch::Process()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (t->GetKind() == Track::Wave &&
|
else if (t->GetKind() == Track::Wave && t->GetSelected())
|
||||||
(t->GetSelected() || (mustSync && t->IsSynchroSelected())) )
|
|
||||||
{
|
{
|
||||||
WaveTrack* leftTrack = (WaveTrack*)t;
|
WaveTrack* leftTrack = (WaveTrack*)t;
|
||||||
//Get start and end times from track
|
//Get start and end times from track
|
||||||
|
Loading…
x
Reference in New Issue
Block a user