aboutsummaryrefslogtreecommitdiff
path: root/include/aosfxplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/aosfxplayer.h')
-rw-r--r--include/aosfxplayer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/aosfxplayer.h b/include/aosfxplayer.h
index 19d4bdf3..5b4d2ece 100644
--- a/include/aosfxplayer.h
+++ b/include/aosfxplayer.h
@@ -12,20 +12,24 @@
#include <QWidget>
#include <string.h>
#include <QDebug>
+#include <QTimer>
-class AOSfxPlayer
+class AOSfxPlayer : public QObject
{
+ Q_OBJECT
public:
AOSfxPlayer(QWidget *parent, AOApplication *p_ao_app);
void play(QString p_sfx, QString p_char = "", QString shout = "");
void stop();
void set_volume(qreal p_volume);
+ void setLooping(bool is_looping);
private:
QWidget *m_parent;
AOApplication *ao_app;
qreal m_volume = 0;
+ bool looping_sfx = false;
void set_volume_internal(qreal p_volume);