Definition at line 214 of file VST3Wrapper.cpp.
◆ ComponentHandler()
anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::ComponentHandler |
( |
VST3Wrapper & |
wrapper | ) |
|
|
inline |
Definition at line 227 of file VST3Wrapper.cpp.
229 {
230 FUNKNOWN_CTOR;
231 }
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 259 of file VST3Wrapper.cpp.
260 {
262 }
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 264 of file VST3Wrapper.cpp.
265 {
269 }
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 234 of file VST3Wrapper.cpp.
235 {
237
238 for (int i = 0; i < paramsCount; ++i)
239 {
240 using Steinberg::Vst::ParameterInfo;
241 ParameterInfo info {};
243
244 if (info.flags & (ParameterInfo::kIsHidden | ParameterInfo::kIsProgramChange))
245 continue;
246
247 if ((info.flags & ParameterInfo::kCanAutomate) == 0)
248 continue;
249
252 }
253 }
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 287 of file VST3Wrapper.cpp.
289 {
291
293 return;
294
295
296
297
298
299 constexpr auto epsilon = Steinberg::Vst::ParamValue(1e-5);
300
301 if (std::abs(it->second - valueNormalized) < epsilon)
302 return;
303
304 it->second = valueNormalized;
305
308 }
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 312 of file VST3Wrapper.cpp.
313 {
314 if(std::this_thread::get_id() !=
mThreadId)
315 return Steinberg::kResultFalse;
316
318
320
321
324 {
326 {
328 vst3settings.parameterChanges[
id] = valueNormalized;
329 return nullptr;
330 });
331 }
332
333 return Steinberg::kResultOk;
334 }
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: