MCPcopy Create free account
hub / github.com/audacity/audacity / MakeMessage

Method MakeMessage

libraries/lib-vst/VSTInstance.cpp:17–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <wx/time.h>
16
17std::unique_ptr<EffectInstance::Message> VSTInstance::MakeMessage() const
18{
19 // The purpose here is just to allocate vectors (chunk and paramVector)
20 // with sufficient size, not to get the values too
21 VSTSettings settings;
22 FetchSettings(settings, /* doFetch = */ false);
23
24 VSTMessage::ParamVector paramVector;
25 paramVector.resize(mAEffect->numParams, std::nullopt);
26
27 return std::make_unique<VSTMessage>( std::move(settings.mChunk), std::move(paramVector) );
28}
29
30
31std::unique_ptr<EffectInstance::Message> VSTInstance::MakeMessage(int id, double value) const

Callers 5

MakeInstanceMethod · 0.45
EventListenerMethod · 0.45
OnSliderMethod · 0.45
AutomateMethod · 0.45
ValidateUIMethod · 0.45

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected