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;
18class TrackList;
20enum class PlayMode : int;
21
22struct AUDACITY_DLL_API TransportUtilities
23{
24 static void PlayCurrentRegionAndWait(
25 const CommandContext &context,
26 bool newDefault = false,
27 bool cutpreview = false);
28 static void PlayPlayRegionAndWait(
29 const CommandContext &context,
30 const SelectedRegion &selectedRegion,
31 const AudioIOStartStreamOptions &options,
32 PlayMode mode);
33 static void RecordAndWait(
34 const CommandContext &context, bool altAppearance);
35
36 static void DoStartPlaying(
37 const CommandContext &context, bool newDefault = false);
38 static bool DoStopPlaying(const CommandContext &context);
39
40};
41
46 TrackList &trackList, bool selectedOnly, bool nonWaveToo = false);
47
48#endif
TransportSequences MakeTransportTracks(TrackList &trackList, bool selectedOnly, bool nonWaveToo=false)
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
Defines a selected portion of a project.
A flat linked list of tracks supporting Add, Remove, Clear, and Contains, serialization of the list o...
Definition: Track.h:850
struct holding stream options, including a pointer to the time warp info and AudioIOListener and whet...
Definition: AudioIOBase.h:44