aboutsummaryrefslogtreecommitdiff
path: root/include/aosfxplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/aosfxplayer.h')
-rw-r--r--include/aosfxplayer.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/aosfxplayer.h b/include/aosfxplayer.h
index 30cbe9d..4b97685 100644
--- a/include/aosfxplayer.h
+++ b/include/aosfxplayer.h
@@ -1,7 +1,12 @@
#ifndef AOSFXPLAYER_H
#define AOSFXPLAYER_H
+#if defined(BASSAUDIO)
#include "bass.h"
+#elif defined(QTAUDIO)
+#include <QSoundEffect>
+#endif
+
#include "aoapplication.h"
#include <QWidget>
@@ -20,9 +25,12 @@ public:
private:
QWidget *m_parent;
AOApplication *ao_app;
-
- int m_volume = 0;
+ #if defined(BASSAUDIO)
HSTREAM m_stream;
+ #elif defined(QTAUDIO)
+ QSoundEffect m_sfx;
+ #endif
+ int m_volume = 0;
};
#endif // AOSFXPLAYER_H