aboutsummaryrefslogtreecommitdiff
path: root/aosfxplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'aosfxplayer.cpp')
-rw-r--r--aosfxplayer.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/aosfxplayer.cpp b/aosfxplayer.cpp
new file mode 100644
index 0000000..132b0bf
--- /dev/null
+++ b/aosfxplayer.cpp
@@ -0,0 +1,13 @@
+#include "aosfxplayer.h"
+
+#include <string.h>
+
+AOSfxPlayer::AOSfxPlayer(QWidget *parent, AOApplication *p_ao_app)
+{
+ m_parent = parent;
+ ao_app = p_ao_app;
+
+ std::basic_string<char> path = ao_app->get_sounds_path().toStdString() + "sfx-squee.wav";
+
+ m_stream = BASS_StreamCreateFile(FALSE, path.c_str(), 0, 0, 0);
+}