Interim commit for COnvolutionReverb

This commit is contained in:
Robin Davies
2023-03-21 06:55:48 -04:00
parent 7741533254
commit 3ab431779a
34 changed files with 3369 additions and 1550 deletions
+10
View File
@@ -39,6 +39,8 @@
#include <mutex>
#include <lv2/lv2plug.in/ns/ext/worker/worker.h>
#include "Lv2Log.hpp"
#include <iostream>
#include <unistd.h> // for nice()
using namespace pipedal;
@@ -103,6 +105,14 @@ void Worker::EmitResponses()
}
void Worker::ThreadProc()
{
// run nice +1 (priority -1 on Windows)
errno = 0;
nice(1);
if (errno != 0)
{
std::cout << "Warning: Unable to run Lv2 schedule thread at nice +1" << std::endl;
}
try
{
while (true)