Audacity 3.2.0
TransportUtilities.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file TransportUtilities.h
6 @brief Some UI related to starting and stopping play and record
7
8 Paul Licameli split from TransportMenus.h
9
10**********************************************************************/
11
12#ifndef __AUDACITY_TRANSPORT_UTILITIES__
13#define __AUDACITY_TRANSPORT_UTILITIES__
14
16class CommandContext;
17class SelectedRegion;
18enum class PlayMode : int;
19
20struct AUDACITY_DLL_API TransportUtilities
21{
22 static void PlayCurrentRegionAndWait(
23 const CommandContext &context,
24 bool newDefault = false,
25 bool cutpreview = false);
26 static void PlayPlayRegionAndWait(
27 const CommandContext &context,
28 const SelectedRegion &selectedRegion,
29 const AudioIOStartStreamOptions &options,
30 PlayMode mode);
31 static void RecordAndWait(
32 const CommandContext &context, bool altAppearance);
33
34 static void DoStartPlaying(
35 const CommandContext &context, bool newDefault = false);
36 static bool DoStopPlaying(const CommandContext &context);
37
38};
39
40#endif
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
Defines a selected portion of a project.
struct holding stream options, including a pointer to the time warp info and AudioIOListener and whet...
Definition: AudioIOBase.h:44