| 154 | } |
| 155 | |
| 156 | std::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 | |
| 171 | bool VSTEffectBase::SaveSettings(const EffectSettings& settings, CommandParameters& parms) const |
| 172 | { |