[Scummvm-git-logs] scummvm master -> 7ede374e36ff6e2ad2fe819ce411acef7bd9b1b5
whoozle
noreply at scummvm.org
Sun Mar 8 22:25:35 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
7ede374e36 PHOENIXVR: skip sound if it's already playing
Commit: 7ede374e36ff6e2ad2fe819ce411acef7bd9b1b5
https://github.com/scummvm/scummvm/commit/7ede374e36ff6e2ad2fe819ce411acef7bd9b1b5
Author: Vladimir Menshakov (vladimir.menshakov at gmail.com)
Date: 2026-03-08T22:25:24Z
Commit Message:
PHOENIXVR: skip sound if it's already playing
Changed paths:
engines/phoenixvr/phoenixvr.cpp
diff --git a/engines/phoenixvr/phoenixvr.cpp b/engines/phoenixvr/phoenixvr.cpp
index 3b60be3f484..bec0ff86847 100644
--- a/engines/phoenixvr/phoenixvr.cpp
+++ b/engines/phoenixvr/phoenixvr.cpp
@@ -310,6 +310,10 @@ int PhoenixVREngine::getVariable(const Common::String &name) const {
void PhoenixVREngine::playSound(const Common::String &sound, Audio::Mixer::SoundType type, uint8 volume, int loops, bool spatial, float angle) {
const bool music = type == Audio::Mixer::kMusicSoundType;
debug("play sound %s %d %d, music: %d, 3d: %d, angle: %g", sound.c_str(), volume, loops, music, spatial, angle);
+ if (_sounds.contains(sound)) {
+ debug("already playing, skipping...");
+ return;
+ }
Audio::SoundHandle h;
Common::ScopedPtr<Common::SeekableReadStream> stream(open(sound));
if (!stream) {
More information about the Scummvm-git-logs
mailing list