From 6f1bce5882676ea7affe717a2f5a00b8c3b7fe12 Mon Sep 17 00:00:00 2001 From: Cerapter Date: Wed, 19 Dec 2018 22:28:49 +0100 Subject: [PATCH] Fixed an issue with overlapping SFXes. The `BASS_ChannelStop()` line existed in 2.4.10, but disappeared in 2.6. This fixes #50 . --- aosfxplayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aosfxplayer.cpp b/aosfxplayer.cpp index 90e458e..7fe7987 100644 --- a/aosfxplayer.cpp +++ b/aosfxplayer.cpp @@ -9,6 +9,8 @@ AOSfxPlayer::AOSfxPlayer(QWidget *parent, AOApplication *p_ao_app) void AOSfxPlayer::play(QString p_sfx, QString p_char, QString shout) { + BASS_ChannelStop(m_stream); + QString misc_path = ""; QString char_path = ""; QString sound_path = ao_app->get_sounds_path(p_sfx);