mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-17 17:17:40 +02:00
Bug2167 residual...
... See comment 9 of bug report See commit 0192af2e97339f90853a76a9eaaed4f6e780f995 The stopping before restart just needed to be delayed a little further
This commit is contained in:
parent
280f724d09
commit
5ebc13be93
@ -1686,11 +1686,6 @@ void AdornedRulerPanel::StartQPPlay(bool looped, bool cutPreview)
|
|||||||
// Looping a tiny selection may freeze, so just play it once.
|
// Looping a tiny selection may freeze, so just play it once.
|
||||||
loopEnabled = ((end - start) > 0.001)? true : false;
|
loopEnabled = ((end - start) > 0.001)? true : false;
|
||||||
|
|
||||||
// Stop only after deciding where to start again, because an event
|
|
||||||
// callback may change the play region back to the selection
|
|
||||||
auto &projectAudioManager = ProjectAudioManager::Get( *mProject );
|
|
||||||
projectAudioManager.Stop();
|
|
||||||
|
|
||||||
auto options = DefaultPlayOptions( *mProject );
|
auto options = DefaultPlayOptions( *mProject );
|
||||||
options.playLooped = (loopEnabled && looped);
|
options.playLooped = (loopEnabled && looped);
|
||||||
|
|
||||||
@ -1705,6 +1700,11 @@ void AdornedRulerPanel::StartQPPlay(bool looped, bool cutPreview)
|
|||||||
: options.playLooped ? PlayMode::loopedPlay
|
: options.playLooped ? PlayMode::loopedPlay
|
||||||
: PlayMode::normalPlay;
|
: PlayMode::normalPlay;
|
||||||
|
|
||||||
|
// Stop only after deciding where to start again, because an event
|
||||||
|
// callback may change the play region back to the selection
|
||||||
|
auto &projectAudioManager = ProjectAudioManager::Get( *mProject );
|
||||||
|
projectAudioManager.Stop();
|
||||||
|
|
||||||
// Change play region display while playing
|
// Change play region display while playing
|
||||||
playRegion.SetTimes( start, end );
|
playRegion.SetTimes( start, end );
|
||||||
Refresh();
|
Refresh();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user