summaryrefslogtreecommitdiff
path: root/src/deviceinfo.h
diff options
context:
space:
mode:
authorMateusz Łukasik <mati75@linuxmint.pl>2016-10-09 22:11:11 +0200
committerMateusz Łukasik <mati75@linuxmint.pl>2016-10-09 22:11:11 +0200
commit392e79606ccba0695027b63ed872c4b0a491cd8b (patch)
treeeb7466234f0b0ee059ff39270739c928a2bceae2 /src/deviceinfo.h
parent029acf6821f034583700c26b013ffc67ad7690f7 (diff)
New upstream version 16.9.0~ds0
Diffstat (limited to 'src/deviceinfo.h')
-rw-r--r--src/deviceinfo.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/deviceinfo.h b/src/deviceinfo.h
index e8a10cc..b04b337 100644
--- a/src/deviceinfo.h
+++ b/src/deviceinfo.h
@@ -23,6 +23,14 @@
#include <QVariant>
#include <QList>
+#ifdef Q_OS_WIN
+#define USE_DSOUND_DEVICES 1
+#else
+#define USE_ALSA_DEVICES 0
+#define USE_PULSEAUDIO_DEVICES 1
+#define USE_XV_ADAPTORS 1
+#endif
+
#ifndef Q_OS_WIN
#define CACHE_DEVICE_INFO
#endif
@@ -58,8 +66,15 @@ public:
static DeviceList dsoundDevices();
static DeviceList displayDevices();
#else
+ #if USE_PULSEAUDIO_DEVICES
+ static DeviceList paDevices();
+ #endif
+ #if USE_ALSA_DEVICES
static DeviceList alsaDevices();
+ #endif
+ #if USE_XV_ADAPTORS
static DeviceList xvAdaptors();
+ #endif
#endif
protected: