File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -256,6 +256,18 @@ processBlock
256
256
(AudioBuffer<float >& buffer,
257
257
MidiBuffer& midiMessages)
258
258
{
259
+ auto mainInputOutput = getBusBuffer (buffer, true , 0 );
260
+
261
+ // add a hopefully inaudible float epsilon here to circumvent VST3
262
+ // plugin auto-suspend (tested in Bitwig). This is ugly, let's
263
+ // hope we can switch to CLAP soon or find a saner solution by
264
+ // flagging the host that we don't want to get suspended via the
265
+ // JUCE API.
266
+ for (auto j = 0 ; j < buffer.getNumSamples (); ++j)
267
+ for (auto i = 0 ; i < mainInputOutput.getNumChannels (); ++i)
268
+ *mainInputOutput.getWritePointer (i, j) =
269
+ *mainInputOutput.getReadPointer (i, j) +
270
+ std::numeric_limits<float >::epsilon ();
259
271
}
260
272
261
273
bool
You can’t perform that action at this time.
0 commit comments