Definition at line 244 of file VST3Wrapper.cpp.
◆ ComponentHandler()
anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::ComponentHandler |
( |
VST3Wrapper & |
wrapper | ) |
|
|
inline |
Definition at line 257 of file VST3Wrapper.cpp.
259 {
260 FUNKNOWN_CTOR;
261 }
const std::thread::id mThreadId
◆ ~ComponentHandler()
virtual anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::~ComponentHandler |
( |
| ) |
|
|
inlinevirtual |
◆ beginEdit()
Steinberg::tresult PLUGIN_API anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::beginEdit |
( |
Steinberg::Vst::ParamID |
id | ) |
|
|
inlineoverride |
◆ BeginStateChange()
void anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::BeginStateChange |
( |
EffectSettings & |
settings | ) |
|
|
inline |
Definition at line 286 of file VST3Wrapper.cpp.
287 {
289 }
static Settings & settings()
EffectSettings * mStateChangeSettings
References settings().
◆ endEdit()
Steinberg::tresult PLUGIN_API anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::endEdit |
( |
Steinberg::Vst::ParamID |
id | ) |
|
|
inlineoverride |
◆ EndStateChange()
void anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::EndStateChange |
( |
| ) |
|
|
inline |
Definition at line 291 of file VST3Wrapper.cpp.
292 {
296 }
void FlushCache(EffectSettings &settings)
◆ FlushCache()
void anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::FlushCache |
( |
EffectSettings & |
settings | ) |
|
|
inline |
◆ GetAccess()
◆ LoadCurrentParamValues()
void anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::LoadCurrentParamValues |
( |
| ) |
|
|
inline |
Definition at line 264 of file VST3Wrapper.cpp.
265 {
267
268 for (int i = 0; i < paramsCount; ++i)
269 {
270 using Steinberg::Vst::ParameterInfo;
271 ParameterInfo info {};
273
274 if ((info.flags & ParameterInfo::kIsReadOnly) != 0)
275 continue;
276
279 }
280 }
Steinberg::IPtr< Steinberg::Vst::IEditController > mEditController
std::map< Steinberg::Vst::ParamID, Steinberg::Vst::ParamValue > mCurrentParamValues
References VST3Wrapper::mEditController.
◆ NotifyParamChange()
void anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::NotifyParamChange |
( |
Steinberg::Vst::ParamID |
id, |
|
|
Steinberg::Vst::ParamValue |
valueNormalized |
|
) |
| |
|
inline |
Definition at line 314 of file VST3Wrapper.cpp.
316 {
318
320 return;
321
322
323
324
325
326 constexpr auto epsilon = Steinberg::Vst::ParamValue(1e-5);
327
328 if (std::abs(it->second - valueNormalized) < epsilon)
329 return;
330
331 it->second = valueNormalized;
332
335 }
std::function< void(Steinberg::Vst::ParamID, Steinberg::Vst::ParamValue)> ParamChangedHandler
References VST3Wrapper::ParamChangedHandler.
◆ performEdit()
Steinberg::tresult PLUGIN_API anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::performEdit |
( |
Steinberg::Vst::ParamID |
id, |
|
|
Steinberg::Vst::ParamValue |
valueNormalized |
|
) |
| |
|
inlineoverride |
Definition at line 339 of file VST3Wrapper.cpp.
340 {
341 if(std::this_thread::get_id() !=
mThreadId)
342 return Steinberg::kResultFalse;
343
345
347
348
351 {
353 {
355 vst3settings.parameterChanges[
id] = valueNormalized;
356 return nullptr;
357 });
358 }
359
360 return Steinberg::kResultOk;
361 }
void ModifySettings(Function &&function)
Do a correct read-modify-write of settings.
bool IsActive() const noexcept
void NotifyParamChange(Steinberg::Vst::ParamID id, Steinberg::Vst::ParamValue valueNormalized)
Externalized state of a plug-in.
References anonymous_namespace{VST3Wrapper.cpp}::GetSettings(), id, VST3Wrapper::IsActive(), and settings().
◆ ResetCache()
void anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::ResetCache |
( |
| ) |
|
|
inline |
◆ restartComponent()
Steinberg::tresult PLUGIN_API anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::restartComponent |
( |
Steinberg::int32 |
flags | ) |
|
|
inlineoverride |
◆ SetAccess()
void anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::SetAccess |
( |
EffectSettingsAccess * |
access | ) |
|
|
inline |
◆ mAccess
◆ mCurrentParamValues
std::map<Steinberg::Vst::ParamID, Steinberg::Vst::ParamValue> anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::mCurrentParamValues |
|
private |
◆ mParametersCache
std::map<Steinberg::Vst::ParamID, Steinberg::Vst::ParamValue> anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::mParametersCache |
|
private |
◆ mStateChangeSettings
EffectSettings* anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::mStateChangeSettings {nullptr} |
|
private |
◆ mThreadId
const std::thread::id anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::mThreadId |
|
private |
◆ mWrapper
VST3Wrapper& anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::mWrapper |
|
private |
The documentation for this class was generated from the following file: