Audacity 3.2.0
Functions
anonymous_namespace{RealtimeEffectManager.cpp} Namespace Reference

Functions

std::pair< Track *, RealtimeEffectList & > FindStates (AudacityProject &project, Track *pTrack)
 

Function Documentation

◆ FindStates()

std::pair< Track *, RealtimeEffectList & > anonymous_namespace{RealtimeEffectManager.cpp}::FindStates ( AudacityProject project,
Track pTrack 
)

Definition at line 268 of file RealtimeEffectManager.cpp.

268 {
269 auto pLeader = pTrack ? *TrackList::Channels(pTrack).begin() : nullptr;
270 return { pLeader,
271 pLeader
272 ? RealtimeEffectList::Get(*pLeader)
273 : RealtimeEffectList::Get(project)
274 };
275}
static RealtimeEffectList & Get(AudacityProject &project)
static auto Channels(TrackType *pTrack) -> TrackIterRange< TrackType >
Definition: Track.h:1544
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
Definition: BasicUI.cpp:196

References TrackList::Channels(), and RealtimeEffectList::Get().

Referenced by RealtimeEffectManager::AddState(), RealtimeEffectManager::FindState(), RealtimeEffectManager::RemoveState(), and RealtimeEffectManager::ReplaceState().

Here is the call graph for this function:
Here is the caller graph for this function: