[Scummvm-git-logs] scummvm master -> 5ff5ca33c997964947a19936753ede5318972461
whoozle
noreply at scummvm.org
Thu Jul 23 00:49:00 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:
5ff5ca33c9 PHOENIXVR: Fix Delay_Sound so it's not playing like music
Commit: 5ff5ca33c997964947a19936753ede5318972461
https://github.com/scummvm/scummvm/commit/5ff5ca33c997964947a19936753ede5318972461
Author: Vladimir Menshakov (vladimir.menshakov at gmail.com)
Date: 2026-07-23T01:47:55+01:00
Commit Message:
PHOENIXVR: Fix Delay_Sound so it's not playing like music
Pass volume, parse delay as float.
Changed paths:
engines/phoenixvr/commands_v2.cpp
diff --git a/engines/phoenixvr/commands_v2.cpp b/engines/phoenixvr/commands_v2.cpp
index 4464a7db3b6..cf51d6e2a79 100644
--- a/engines/phoenixvr/commands_v2.cpp
+++ b/engines/phoenixvr/commands_v2.cpp
@@ -126,18 +126,19 @@ struct Play_Amb : public Command {
int loops;
Play_Amb(const Common::Array<Common::String> &args) : path(args[0]), volume(atoi(args[1].c_str())), loops(atoi(args[2].c_str())) {}
void exec(ExecutionContext &ctx) const override {
- g_engine->playSound(path, Audio::Mixer::kMusicSoundType, 100, loops);
+ g_engine->playSound(path, Audio::Mixer::kMusicSoundType, volume, loops);
}
};
struct Delay_Sound : public Command {
Common::String path;
- int delay;
+ float delay;
int volume;
int loops;
- Delay_Sound(const Common::Array<Common::String> &args) : path(args[0]), delay(atoi(args[1].c_str())), volume(atoi(args[2].c_str())), loops(atoi(args[3].c_str())) {}
+ Delay_Sound(const Common::Array<Common::String> &args) : path(args[0]), delay(atof(args[1].c_str())), volume(atoi(args[2].c_str())), loops(atoi(args[3].c_str())) {}
void exec(ExecutionContext &ctx) const override {
- g_engine->playSound(path, Audio::Mixer::kMusicSoundType, 100, loops);
+ warning("delay sound stub, delay: %gs", delay);
+ g_engine->playSound(path, Audio::Mixer::kSFXSoundType, volume, loops);
}
};
More information about the Scummvm-git-logs
mailing list