From 4e88f3243421367f15e450f6bf166d7bcdc7648d Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 20 Sep 2014 17:08:18 +0200 Subject: Check for pulse audio at startup. --- src/simplertp.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/simplertp.cc b/src/simplertp.cc index 7a56fb3..ef71192 100644 --- a/src/simplertp.cc +++ b/src/simplertp.cc @@ -27,11 +27,18 @@ #include #include +#include #include "mainwindow.h" int main(int argc, char *argv[]) { + int pulse = system("pidof pulseaudio &> /dev/null"); + if(pulse == 0) { + printf("Pulse audio is running - simplertp wont work...\n"); + return 1; + } + QApplication app(argc, argv); if(argc < 2) { -- cgit v1.2.3