commit 6cea5697ff2974bb2f4e2c56398349378655700c
parent 66a05966b386c6c5570d37fde961a1c1b6e9ebd9
Author: fundamental <mark.d.mccurry@gmail.com>
Date: Mon, 4 May 2015 22:33:26 -0400
Avoid Jack Samplerate When Jack Is Inactive
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/Nio/Nio.cpp b/src/Nio/Nio.cpp
@@ -118,6 +118,10 @@ string Nio::getSink()
#include <jack/jack.h>
void Nio::preferedSampleRate(unsigned &rate)
{
+ //XXX hello non portable code
+ if(system("ps | grep jack"))
+ return;
+
jack_client_t *client = jack_client_open("temp-client",
JackNoStartServer, 0);
if(client) {