summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Bisballe Jensen <larsbisballe@gmail.com>2014-09-28 20:46:46 +0200
committerLars Bisballe Jensen <larsbisballe@gmail.com>2014-09-28 20:46:46 +0200
commit7d59d990fbf5df023acef01cb092fac143be2345 (patch)
tree75a5d24578ba45737efba424e4fa043a4c11e5c4
parent0778ef5b7a60e1d8ed8b3ea2faf913a36a8ed327 (diff)
Moved pulse includes inside ifdefs
-rw-r--r--src/audiobackend-pulse.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audiobackend-pulse.cc b/src/audiobackend-pulse.cc
index 63013af..83fc93d 100644
--- a/src/audiobackend-pulse.cc
+++ b/src/audiobackend-pulse.cc
@@ -27,11 +27,11 @@
#include "audiobackend-pulse.h"
#include "mediaconfig.h"
+#ifdef WITH_PULSE
+
#include <pulse/simple.h>
#include <pulse/error.h>
-#ifdef WITH_PULSE
-
/*
Input example:
http://freedesktop.org/software/pulseaudio/doxygen/pacat-simple_8c-example.html
@@ -54,7 +54,7 @@ AudioBackendPulse::AudioBackendPulse(const char *device)
"SimpleRTP", // Our application's name.
PA_STREAM_RECORD,
NULL, // Use the default device.
- "SimpleRTP", // Description of our stream.
+ "SimpleRTPin", // Description of our stream.
&ss, // Our sample format.
NULL, // Use default channel map
NULL, // Use default buffering attributes.
@@ -65,7 +65,7 @@ AudioBackendPulse::AudioBackendPulse(const char *device)
"SimpleRTP", // Our application's name.
PA_STREAM_PLAYBACK,
NULL, // Use the default device.
- "SimpleRTP", // Description of our stream.
+ "SimpleRTPout", // Description of our stream.
&ss, // Our sample format.
NULL, // Use default channel map
NULL, // Use default buffering attributes.