aboutsummaryrefslogtreecommitdiff
path: root/aoblipplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'aoblipplayer.h')
-rw-r--r--aoblipplayer.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/aoblipplayer.h b/aoblipplayer.h
new file mode 100644
index 0000000..fdb2550
--- /dev/null
+++ b/aoblipplayer.h
@@ -0,0 +1,27 @@
+#ifndef AOBLIPPLAYER_H
+#define AOBLIPPLAYER_H
+
+#include "bass.h"
+#include "aoapplication.h"
+
+#include <QWidget>
+
+class AOBlipPlayer
+{
+public:
+ AOBlipPlayer(QWidget *parent, AOApplication *p_ao_app);
+
+ void set_blips(QString p_sfx, int p_volume);
+ void blip_tick();
+ void set_volume(int p_volume);
+
+ int m_cycle = 0;
+
+private:
+ QWidget *m_parent;
+ AOApplication *ao_app;
+
+ HSTREAM m_stream_list[5];
+};
+
+#endif // AOBLIPPLAYER_H