29 void set_dsp_type(sc_dsp_type type)
31 m_parameterDescriptions.clear();
34 BOOST_ASSERT(m_config.vtable !=
nullptr);
36 for (
int i = 0; i < m_config.vtable->numParams; ++i)
38 m_parameterDescriptions.emplace_back(m_config.vtable->params[i]);
42 void set_dsp_clap(clap_plugin_factory* pluginFactory)
44 m_parameterDescriptions.clear();
46 m_config = sc_dsp_config_init_clap(pluginFactory);
47 BOOST_ASSERT(m_config.vtable !=
nullptr);
49 for (
int i = 0; i < m_config.vtable->numParams; ++i)
51 m_parameterDescriptions.emplace_back(m_config.vtable->params[i]);
55 [[nodiscard]] std::vector<effect_parameter_description> get_parameters()
const
57 return m_parameterDescriptions;
59 [[nodiscard]]
const sc_dsp_config* get_config()
const {
return &m_config; }
60 [[nodiscard]] sc_dsp_type get_dsp_type()
const {
return m_config.type; }
64 std::vector<effect_parameter_description> m_parameterDescriptions;
sc_dsp_config SC_API sc_dsp_config_init(sc_dsp_type type)
Returns a valid sc_dsp_config object for the DSP type.
Definition sound_chef.c:1285