1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-21 23:00:06 +02:00

Bug 2347: Begin loop play from cursor if no selection

If no selection and cursor outside of project time range,
begin loop play at beginning of project.
This commit is contained in:
SteveDaulton 2020-03-09 17:00:19 +00:00
parent a7bd7331ac
commit acfff57ac8

View File

@ -175,7 +175,7 @@ int ProjectAudioManager::PlayPlayRegion(const SelectedRegion &selectedRegion,
else { else {
// loop the entire project // loop the entire project
// Bug2347, loop playback from cursor position instead of project start // Bug2347, loop playback from cursor position instead of project start
loop_offset = t0; loop_offset = t0 - tracks.GetStartTime();
t0 = tracks.GetStartTime(); t0 = tracks.GetStartTime();
t1 = tracks.GetEndTime(); t1 = tracks.GetEndTime();
} }