mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 08:27:13 +01:00
enum PlayMode tells whether there's cut preview; out of Project.h
This commit is contained in:
@@ -707,9 +707,9 @@ void OnPlayOneSecond(const CommandContext &context)
|
||||
auto options = project.GetDefaultPlayOptions();
|
||||
|
||||
double pos = trackPanel->GetMostRecentXPos();
|
||||
controlToolBar->PlayPlayRegion
|
||||
(SelectedRegion(pos - 0.5, pos + 0.5), options,
|
||||
PlayMode::oneSecondPlay);
|
||||
controlToolBar->PlayPlayRegion(
|
||||
SelectedRegion(pos - 0.5, pos + 0.5), options,
|
||||
PlayMode::oneSecondPlay);
|
||||
}
|
||||
|
||||
/// The idea for this function (and first implementation)
|
||||
@@ -759,8 +759,8 @@ void OnPlayToSelection(const CommandContext &context)
|
||||
auto controlToolBar = project.GetControlToolBar();
|
||||
auto playOptions = project.GetDefaultPlayOptions();
|
||||
|
||||
controlToolBar->PlayPlayRegion
|
||||
(SelectedRegion(t0, t1), playOptions, PlayMode::oneSecondPlay);
|
||||
controlToolBar->PlayPlayRegion(
|
||||
SelectedRegion(t0, t1), playOptions, PlayMode::oneSecondPlay);
|
||||
}
|
||||
|
||||
// The next 4 functions provide a limited version of the
|
||||
|
||||
Reference in New Issue
Block a user