We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1640b89 commit 66b2f11Copy full SHA for 66b2f11
src/engine/audio/Audio.cpp
@@ -197,9 +197,7 @@ namespace Audio {
197
auto& loop = entityLoops[i];
198
if (loop.sound and not loop.addedThisFrame) {
199
// The loop wasn't added this frame, that means it has to be removed.
200
- loop.sound->FadeOutAndDie();
201
- loop = {false, nullptr, -1, -1};
202
-
+ loop.sound->SetSoundGain( 0 );
203
} else if (loop.oldSfx != loop.newSfx) {
204
// The last sfx added in the frame is not the current one being played
205
// To mimic the previous sound system's behavior we sart playing the new one.
0 commit comments