[Scummvm-git-logs] scummvm master -> 62dab330d0786ff3acd8640245ee70ac2dbe23d0

bluegr noreply at scummvm.org
Fri Dec 27 09:09:26 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:
62dab330d0 SCUMM: Clean up unneeded arrays and maps for SE sounds


Commit: 62dab330d0786ff3acd8640245ee70ac2dbe23d0
    https://github.com/scummvm/scummvm/commit/62dab330d0786ff3acd8640245ee70ac2dbe23d0
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2024-12-27T11:08:53+02:00

Commit Message:
SCUMM: Clean up unneeded arrays and maps for SE sounds

Changed paths:
    engines/scumm/soundse.cpp
    engines/scumm/soundse.h


diff --git a/engines/scumm/soundse.cpp b/engines/scumm/soundse.cpp
index 3849b4f535c..21cd8a9f693 100644
--- a/engines/scumm/soundse.cpp
+++ b/engines/scumm/soundse.cpp
@@ -82,6 +82,9 @@ void SoundSE::initSoundFiles() {
 	default:
 		error("initSoundFiles: unhandled game");
 	}
+
+	// Clear the original offset map, as we no longer need it
+	_audioNameToOriginalOffsetMap.clear();
 }
 
 Audio::SeekableAudioStream *SoundSE::getXWBTrack(int track) {
@@ -364,7 +367,7 @@ void SoundSE::initAudioMappingMI() {
 			entry.messageIndex
 		);
 
-		_audioEntriesMI.push_back(entry);
+		//_audioEntriesMI.push_back(entry);
 	} while (!f->eos());
 
 	f->close();
diff --git a/engines/scumm/soundse.h b/engines/scumm/soundse.h
index 8cc795c0e9a..18a918404cb 100644
--- a/engines/scumm/soundse.h
+++ b/engines/scumm/soundse.h
@@ -118,8 +118,8 @@ private:
 		Common::String speechFile; // 32 bytes
 	};
 
-	typedef Common::Array<AudioEntryMI> AudioIndexMI;
-	AudioIndexMI _audioEntriesMI;
+	//typedef Common::Array<AudioEntryMI> AudioIndexMI;
+	//AudioIndexMI _audioEntriesMI;
 
 	int32 getSoundIndexFromOffset(uint32 offset);
 




More information about the Scummvm-git-logs mailing list