aboutsummaryrefslogtreecommitdiff
path: root/include/aosfxplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/aosfxplayer.h')
-rw-r--r--include/aosfxplayer.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/aosfxplayer.h b/include/aosfxplayer.h
new file mode 100644
index 00000000..30cbe9d3
--- /dev/null
+++ b/include/aosfxplayer.h
@@ -0,0 +1,28 @@
+#ifndef AOSFXPLAYER_H
+#define AOSFXPLAYER_H
+
+#include "bass.h"
+#include "aoapplication.h"
+
+#include <QWidget>
+#include <string.h>
+#include <QDebug>
+
+class AOSfxPlayer
+{
+public:
+ AOSfxPlayer(QWidget *parent, AOApplication *p_ao_app);
+
+ void play(QString p_sfx, QString p_char = "", QString shout = "");
+ void stop();
+ void set_volume(int p_volume);
+
+private:
+ QWidget *m_parent;
+ AOApplication *ao_app;
+
+ int m_volume = 0;
+ HSTREAM m_stream;
+};
+
+#endif // AOSFXPLAYER_H