summaryrefslogtreecommitdiffstats
path: root/src/AlsaInput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/AlsaInput.cpp')
-rw-r--r--src/AlsaInput.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/AlsaInput.cpp b/src/AlsaInput.cpp
index 492ff62..e5fd420 100644
--- a/src/AlsaInput.cpp
+++ b/src/AlsaInput.cpp
@@ -17,12 +17,13 @@
* -------------------------------------------------------------------
*/
+#include "config.h"
+#if HAVE_ALSA
+
+#include "AlsaInput.h"
#include <cstdio>
#include <string>
-
#include <alsa/asoundlib.h>
-
-#include "AlsaInput.h"
#include <sys/time.h>
using namespace std;
@@ -159,3 +160,5 @@ ssize_t AlsaInputDirect::read(uint8_t* buf, size_t length)
return (read > 0) ? read * bytes_per_frame : read;
}
+#endif // HAVE_ALSA
+