aboutsummaryrefslogtreecommitdiff
path: root/aosfxplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'aosfxplayer.cpp')
-rw-r--r--aosfxplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/aosfxplayer.cpp b/aosfxplayer.cpp
index b783616d..6ad59bae 100644
--- a/aosfxplayer.cpp
+++ b/aosfxplayer.cpp
@@ -23,7 +23,7 @@ void AOSfxPlayer::play(QString p_sfx, QString p_char)
else
f_path = ao_app->get_sounds_path() + p_sfx;
- m_stream = BASS_StreamCreateFile(FALSE, f_path.toStdString().c_str(), 0, 0, BASS_STREAM_AUTOFREE);
+ m_stream = BASS_StreamCreateFile(FALSE, f_path.utf16(), 0, 0, BASS_STREAM_AUTOFREE | BASS_UNICODE | BASS_ASYNCFILE);
set_volume(m_volume);