Audacity
3.2.0
src
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
15
struct
AudioIOStartStreamOptions
;
16
class
CommandContext
;
17
class
SelectedRegion
;
18
class
TrackList
;
19
class
TransportSequences
;
20
enum class
PlayMode
: int;
21
22
struct
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
45
TransportSequences
MakeTransportTracks
(
46
TrackList
&trackList,
bool
selectedOnly,
bool
nonWaveToo =
false
);
47
48
#endif
PlayMode
PlayMode
Definition:
ProjectAudioManager.h:34
MakeTransportTracks
TransportSequences MakeTransportTracks(TrackList &trackList, bool selectedOnly, bool nonWaveToo=false)
Definition:
TransportUtilities.cpp:208
CommandContext
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
Definition:
CommandContext.h:37
SelectedRegion
Defines a selected portion of a project.
Definition:
SelectedRegion.h:38
TrackList
A flat linked list of tracks supporting Add, Remove, Clear, and Contains, serialization of the list o...
Definition:
Track.h:850
AudioIOStartStreamOptions
struct holding stream options, including a pointer to the time warp info and AudioIOListener and whet...
Definition:
AudioIOBase.h:46
TransportSequences
Definition:
AudioIO.h:71
TransportUtilities
Definition:
TransportUtilities.h:23
Generated by
1.9.3