g, optimize);
// creating the DSP instance for interfacing
dsp* m_dsp = m_factory-&gt;createDSPInstance();

// Creating a generic UI to interact with the DSP
my_ui* m_ui = new MyUI();
// linking the interface to the DSP instance 
m_dsp-&gt;buildUserInterface(m_ui);

// Initializing the DSP instance with the SR
m_dsp-&gt;init(44100);

// Hypothetical audio callback, assuming m_input/m_output are previously allocated 
while (...) {
  m_dsp-&gt;compute(128, m_input, m_output);
}

// Cleaning
// Manually delete