[Scummvm-git-logs] scummvm master -> 263ea9a063eb6573ccfd0543dbbd3ecaa7e6de24

sev- noreply at scummvm.org
Tue May 28 12:55:12 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
263ea9a063 AGOS: Added support for music track replacement for Enhanced Music Project


Commit: 263ea9a063eb6573ccfd0543dbbd3ecaa7e6de24
    https://github.com/scummvm/scummvm/commit/263ea9a063eb6573ccfd0543dbbd3ecaa7e6de24
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-05-28T14:54:44+02:00

Commit Message:
AGOS: Added support for music track replacement for Enhanced Music Project

Changed paths:
    engines/agos/res_snd.cpp


diff --git a/engines/agos/res_snd.cpp b/engines/agos/res_snd.cpp
index ab7286269a9..220a0474d18 100644
--- a/engines/agos/res_snd.cpp
+++ b/engines/agos/res_snd.cpp
@@ -256,7 +256,12 @@ void AGOSEngine_Simon2::playMusic(uint16 music, uint16 track) {
 	}
 
 #ifdef USE_VORBIS
-		Common::String trackName = Common::String::format("OGG/track%02d", _lastMusicPlayed);
+		Common::String trackName;
+
+		if (track)
+			Common::String::format("OGG/track%02d-%d", _lastMusicPlayed, track);
+		else
+			Common::String::format("OGG/track%02d", _lastMusicPlayed);
 
 		_digitalMusicStream = Audio::SeekableAudioStream::openStreamFile(trackName.c_str());
 		if (_digitalMusicStream) {




More information about the Scummvm-git-logs mailing list