From 84254c10d2898fbe7f45934bcaad94a217cc22ab Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 26 Feb 2016 01:34:08 +0100 Subject: Make ALSA input conditional --- src/AlsaInput.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/AlsaInput.h') diff --git a/src/AlsaInput.h b/src/AlsaInput.h index 4f63ab5..34886df 100644 --- a/src/AlsaInput.h +++ b/src/AlsaInput.h @@ -19,6 +19,11 @@ #ifndef __ALSA_H_ #define __ALSA_H_ + +#include "config.h" + +#if HAVE_ALSA + #include #include #include @@ -27,12 +32,7 @@ #include #include "SampleQueue.h" - -// 16 bits per sample is fine for now -#define BYTES_PER_SAMPLE 2 - -// How many samples we insert into the queue each call -#define NUM_SAMPLES_PER_CALL 10 // 10 samples @ 32kHz = 3.125ms +#include "common.h" /* Common functionality for the direct alsa input and the * threaded alsa input @@ -132,5 +132,8 @@ class AlsaInputThreaded : public AlsaInput }; -#endif +#endif // HAVE_ALSA + +#endif // __ALSA_H_ + -- cgit v1.2.3