mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 12:30:12 +02:00
Add compatibility option to force flushing to zero
This prevents Kush Audio REDDI from taking down the DAW when the host passes it denormalized audio to process. I've discovered that the issue with this plugin had to do with denormals in the issue linked below, but I didn't realize that we can just enable the FTZ flag for plugins that don't already do so. https://github.com/osxmidi/LinVst/issues/174
This commit is contained in:
+1
-3
@@ -90,15 +90,13 @@ bool set_realtime_priority(bool sched_fifo, int priority = 5);
|
||||
* previously when it drops out of scope.
|
||||
*/
|
||||
class ScopedFlushToZero {
|
||||
public:
|
||||
ScopedFlushToZero();
|
||||
~ScopedFlushToZero();
|
||||
|
||||
ScopedFlushToZero(const ScopedFlushToZero&) = delete;
|
||||
ScopedFlushToZero& operator=(const ScopedFlushToZero&) = delete;
|
||||
|
||||
ScopedFlushToZero(ScopedFlushToZero&&) = delete;
|
||||
ScopedFlushToZero& operator=(ScopedFlushToZero&&) = delete;
|
||||
|
||||
private:
|
||||
/**
|
||||
* The previous FTZ mode. When we use this on the Wine side, this should
|
||||
|
||||
Reference in New Issue
Block a user