From 4ca61c93a9958248edecba28d9bcfa6bea1e2e13 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 12 Feb 2021 01:02:50 +0100 Subject: [PATCH] FIRE-29387: Stop currently playing sound before triggering a new one --- indra/newview/fsfloaterassetblacklist.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/newview/fsfloaterassetblacklist.cpp b/indra/newview/fsfloaterassetblacklist.cpp index 652718319f..00bb43988c 100644 --- a/indra/newview/fsfloaterassetblacklist.cpp +++ b/indra/newview/fsfloaterassetblacklist.cpp @@ -241,8 +241,10 @@ void FSFloaterAssetBlacklist::onPlayBtn() return; } + onStopBtn(); + mAudioSourceID = LLUUID::generateNewID(); - gAudiop->triggerSound(item->getUUID(), gAgent.getID(), 1.0f, LLAudioEngine::AUDIO_TYPE_UI, LLVector3d::zero, LLUUID::null, mAudioSourceID); + gAudiop->triggerSound(item->getUUID(), gAgentID, 1.0f, LLAudioEngine::AUDIO_TYPE_UI, LLVector3d::zero, LLUUID::null, mAudioSourceID); childSetVisible("stop_btn", true); childSetVisible("play_btn", false);