| 817 | |
| 818 | protected: |
| 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 | |
| 846 | bool runSelfTests() |
no test coverage detected