diff options
| -rw-r--r-- | aosfxplayer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/aosfxplayer.cpp b/aosfxplayer.cpp index d5b5a9e0..84a8eb3e 100644 --- a/aosfxplayer.cpp +++ b/aosfxplayer.cpp @@ -27,6 +27,8 @@ void AOSfxPlayer::play(QString p_sfx, QString p_char, QString shout) else f_path = sound_path; + m_stream = BASS_StreamCreateFile(FALSE, f_path.utf16(), 0, 0, BASS_STREAM_AUTOFREE | BASS_UNICODE | BASS_ASYNCFILE); + set_volume(m_volume); if (ao_app->get_audio_output_device() != "Default") |
