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

Method MakeInstance

libraries/lib-vst/VSTEffectBase.cpp:156–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156std::shared_ptr<EffectInstance> VSTEffectBase::MakeInstance() const
157{
158 int userBlockSize;
159 GetConfig(*this, PluginSettings::Shared, wxT("Options"),
160 wxT("BufferSize"), userBlockSize, 8192);
161 size_t userBlockSizeC = std::max( 1, userBlockSize );
162 bool useLatency;
163 GetConfig(*this, PluginSettings::Shared, wxT("Options"),
164 wxT("UseLatency"), useLatency, true);
165
166
167 return std::make_shared<VSTInstance>(
168 *this, mPath, userBlockSizeC, userBlockSizeC, useLatency);
169}
170
171bool VSTEffectBase::SaveSettings(const EffectSettings& settings, CommandParameters& parms) const
172{

Callers

nothing calls this directly

Calls 2

GetConfigFunction · 0.85
maxFunction · 0.85

Tested by

no test coverage detected