Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
TransportTracks Struct Referencefinal

#include <AudioIO.h>

Collaboration diagram for TransportTracks:
[legend]

Public Member Functions

 TransportTracks ()=default
 
 TransportTracks (TrackList &trackList, bool selectedOnly, bool nonWaveToo=false)
 

Public Attributes

SampleTrackConstArray playbackTracks
 
WritableSampleTrackArray captureTracks
 
PlayableTrackConstArray otherPlayableTracks
 
SampleTrackConstArray prerollTracks
 

Detailed Description

Definition at line 80 of file AudioIO.h.

Constructor & Destructor Documentation

◆ TransportTracks() [1/2]

TransportTracks::TransportTracks ( )
default

◆ TransportTracks() [2/2]

TransportTracks::TransportTracks ( TrackList trackList,
bool  selectedOnly,
bool  nonWaveToo = false 
)
Parameters
nonWaveTooif true, collect all PlayableTracks

Definition at line 126 of file AudioIO.cpp.

128{
129 {
130 const auto range = trackList.Any<SampleTrack>()
131 + (selectedOnly ? &Track::IsSelected : &Track::Any);
132 for (auto pTrack : range)
133 playbackTracks.push_back(pTrack->SharedPointer<SampleTrack>());
134 }
135#ifdef EXPERIMENTAL_MIDI_OUT
136 if (nonWaveToo) {
137 const auto range = trackList.Any<const PlayableTrack>() +
138 (selectedOnly ? &Track::IsSelected : &Track::Any);
139 for (auto pTrack : range)
140 if (!track_cast<const SampleTrack *>(pTrack))
141 otherPlayableTracks.push_back(
142 pTrack->SharedPointer<const PlayableTrack>() );
143 }
144#endif
145}
AudioTrack subclass that can also be audibly replayed by the program.
Definition: Track.h:916
bool IsSelected() const
Definition: Track.cpp:402
bool Any() const
Definition: Track.cpp:399
auto Any() -> TrackIterRange< TrackType >
Definition: Track.h:1437
PlayableTrackConstArray otherPlayableTracks
Definition: AudioIO.h:89
SampleTrackConstArray playbackTracks
Definition: AudioIO.h:87

References TrackList::Any(), Track::Any(), Track::IsSelected(), otherPlayableTracks, and playbackTracks.

Here is the call graph for this function:

Member Data Documentation

◆ captureTracks

WritableSampleTrackArray TransportTracks::captureTracks

◆ otherPlayableTracks

PlayableTrackConstArray TransportTracks::otherPlayableTracks

◆ playbackTracks

SampleTrackConstArray TransportTracks::playbackTracks

Definition at line 87 of file AudioIO.h.

Referenced by ProjectAudioManager::OnRecord(), AudioIO::StartStream(), and TransportTracks().

◆ prerollTracks

SampleTrackConstArray TransportTracks::prerollTracks

Definition at line 92 of file AudioIO.h.

Referenced by AudioIO::AllocateBuffers().


The documentation for this struct was generated from the following files: