30 {
return std::make_unique<RealtimeEffectStateUI>(state); }
40 : mRealtimeEffectState(state)
64 const auto effectPlugin =
67 if (effectPlugin ==
nullptr)
73 if (client ==
nullptr)
78 std::shared_ptr<EffectInstance> pInstance;
84 &projectWindow,
project, *effectPlugin, *client, pInstance, *access,
87 if (!dlg->Initialize())
95 client->ShowClientInterface(*effectPlugin,
168 if (effectPlugin !=
nullptr)
169 mEffectName = effectPlugin->GetDefinition().GetName();
189 auto next = GetNextHandler();
198 next->ProcessEvent(evt);
std::unique_ptr< T, Destroyer< T > > Destroy_ptr
a convenience for using Destroyer
declares abstract base class Track, TrackList, and iterators over TrackList
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Subclass & Get(const RegisteredFactory &key)
Get reference to an attachment, creating on demand if not present, down-cast it to Subclass.
Base class for many of the effects in Audacity.
EffectPlugin * GetEffect(const PluginID &ID)
static EffectManager & Get()
static result_type Call(Arguments &&...arguments)
Null check of the installed function is done for you.
static ProjectWindow & Get(AudacityProject &project)
std::shared_ptr< EffectSettingsAccess > GetAccess()
const PluginID & GetID() const noexcept
UI state for realtime effect.
Observer::Subscription mParameterChangedSubscription
TranslatableString mEffectName
bool IsShown() const noexcept
Observer::Subscription mProjectWindowDestroyedSubscription
void OnClose(wxCloseEvent &evt)
RealtimeEffectState & mRealtimeEffectState
~RealtimeEffectStateUI() override
void Show(AudacityProject &project)
void Toggle(AudacityProject &project)
wxWeakRef< EffectUIHost > mEffectUIHost
AudacityProject * mpProject
static RealtimeEffectStateUI & Get(RealtimeEffectState &state)
void UpdateTrackData(const Track &track)
void Hide(AudacityProject *project=nullptr)
void AutoSave(AudacityProject &project)
Abstract base class for an object holding data associated with points on a time axis.
const wxString & GetName() const
Name is always the same for all channels of a group.
static UndoManager & Get(AudacityProject &project)
const RealtimeEffectState::RegisteredFactory realtimeEffectStateUIFactory
Message sent when the project window is closed.