MCPcopy Create free account
hub / github.com/DISTRHO/DPF / run

Method run

distrho/src/DistrhoPluginJACK.cpp:819–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817
818protected:
819 void run() override
820 {
821 plugin.setBufferSize(256, true);
822 plugin.activate();
823
824 float buffer[256];
825 const float* inputs[DISTRHO_PLUGIN_NUM_INPUTS > 0 ? DISTRHO_PLUGIN_NUM_INPUTS : 1];
826 float* outputs[DISTRHO_PLUGIN_NUM_OUTPUTS > 0 ? DISTRHO_PLUGIN_NUM_OUTPUTS : 1];
827 for (int i=0; i<DISTRHO_PLUGIN_NUM_INPUTS; ++i)
828 inputs[i] = buffer;
829 for (int i=0; i<DISTRHO_PLUGIN_NUM_OUTPUTS; ++i)
830 outputs[i] = buffer;
831
832 while (! shouldThreadExit())
833 {
834 #if DISTRHO_PLUGIN_WANT_MIDI_INPUT
835 plugin.run(inputs, outputs, 128, nullptr, 0);
836 #else
837 plugin.run(inputs, outputs, 128);
838 #endif
839 d_msleep(100);
840 }
841
842 plugin.deactivate();
843 }
844};
845
846bool runSelfTests()

Callers 11

runFunction · 0.45
vst_processReplacingFunction · 0.45
jackProcessMethod · 0.45
runSelfTestsFunction · 0.45
ladspa_runFunction · 0.45
processMethod · 0.45
lv2_runMethod · 0.45
processFunction · 0.45
processMethod · 0.45
runFunction · 0.45
processFunction · 0.45

Calls 5

shouldThreadExitFunction · 0.85
d_msleepFunction · 0.85
setBufferSizeMethod · 0.80
activateMethod · 0.45
deactivateMethod · 0.45

Tested by

no test coverage detected