[Scummvm-git-logs] scummvm master -> 595613e2b021f1698c57bed8ed89583a7e7e2928

dreammaster noreply at scummvm.org
Tue Aug 11 02:37:21 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:
595613e2b0 MADS: DRAGONSPHERE: Implement Adlib driver callback offset for command 32


Commit: 595613e2b021f1698c57bed8ed89583a7e7e2928
    https://github.com/scummvm/scummvm/commit/595613e2b021f1698c57bed8ed89583a7e7e2928
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-08-11T12:33:58+10:00

Commit Message:
MADS: DRAGONSPHERE: Implement Adlib driver callback offset for command 32

Changed paths:
    engines/mads/dragonsphere/sound/asound_dragonsphere.cpp
    engines/mads/dragonsphere/sound/asound_dragonsphere.h


diff --git a/engines/mads/dragonsphere/sound/asound_dragonsphere.cpp b/engines/mads/dragonsphere/sound/asound_dragonsphere.cpp
index d265e680818..b440ee4e7fa 100644
--- a/engines/mads/dragonsphere/sound/asound_dragonsphere.cpp
+++ b/engines/mads/dragonsphere/sound/asound_dragonsphere.cpp
@@ -2457,6 +2457,13 @@ int ASound9::command6() { return ASound::command6(); }
 int ASound9::command7() { return ASound::command7(); }
 int ASound9::command8() { return ASound::command8(); }
 
+void ASound9::callFunction(uint16 offset) {
+	if (offset == 0x1adc)
+		command32();
+	else
+		ASound::callFunction(offset);
+}
+
 // ---------------------------------------------------------------------------
 // Music command 32 — deferred loader (isMusicChannelsActive pattern B)
 // ---------------------------------------------------------------------------
diff --git a/engines/mads/dragonsphere/sound/asound_dragonsphere.h b/engines/mads/dragonsphere/sound/asound_dragonsphere.h
index 1b6cbd7971a..4aeb7846d22 100644
--- a/engines/mads/dragonsphere/sound/asound_dragonsphere.h
+++ b/engines/mads/dragonsphere/sound/asound_dragonsphere.h
@@ -546,6 +546,13 @@ private:
 
 	static const CommandPtr _commandList[65];
 
+protected:
+	/**
+	 * Calls a function at a fixed offset within the sound driver.
+	 * @param offset		Offset of the function
+	 */
+	void callFunction(uint16 offset) override;
+
 public:
 	ASound9(Audio::Mixer *mixer);
 	~ASound9() override {}




More information about the Scummvm-git-logs mailing list