Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
AudioIoCallback::TransportState Struct Reference

Public Member Functions

 TransportState (std::weak_ptr< AudacityProject > wOwningProject, const ConstPlayableSequences &playbackSequences, unsigned numPlaybackChannels, double sampleRate)
 

Public Attributes

std::optional< RealtimeEffects::InitializationScopempRealtimeInitialization
 

Detailed Description

Definition at line 131 of file AudioIO.cpp.

Constructor & Destructor Documentation

◆ TransportState()

AudioIoCallback::TransportState::TransportState ( std::weak_ptr< AudacityProject wOwningProject,
const ConstPlayableSequences playbackSequences,
unsigned  numPlaybackChannels,
double  sampleRate 
)
inline

Definition at line 132 of file AudioIO.cpp.

135 {
136 if (auto pOwningProject = wOwningProject.lock();
137 pOwningProject && numPlaybackChannels > 0) {
138 // Setup for realtime playback at the rate of the realtime
139 // stream, not the rate of the sample sequence.
141 move(wOwningProject), sampleRate, numPlaybackChannels);
142 // The following adds a new effect processor for each logical sequence.
143 for (size_t i = 0, cnt = playbackSequences.size(); i < cnt; ++i) {
144 // An array only of non-null pointers should be given to us
145 const auto vt = playbackSequences[i].get();
146 const auto pGroup = vt ? vt->FindChannelGroup() : nullptr;
147 if (!pGroup) {
148 assert(false);
149 continue;
150 }
152 ->AddGroup(*pGroup, numPlaybackChannels, sampleRate);
153 }
154 }
155 }
std::optional< RealtimeEffects::InitializationScope > mpRealtimeInitialization
Definition: AudioIO.cpp:157

References mpRealtimeInitialization, and anonymous_namespace{ClipSegmentTest.cpp}::sampleRate.

Member Data Documentation

◆ mpRealtimeInitialization

std::optional<RealtimeEffects::InitializationScope> AudioIoCallback::TransportState::mpRealtimeInitialization

Definition at line 157 of file AudioIO.cpp.

Referenced by TransportState().


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