[Scummvm-git-logs] scummvm master -> c3384ededcbc06c4e069288c41ac9dd72686c129

criezy noreply at scummvm.org
Mon Aug 11 23:20:26 UTC 2025


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:
c3384ededc TEENAGENT: Respect speech volume and mute settings for Polish version


Commit: c3384ededcbc06c4e069288c41ac9dd72686c129
    https://github.com/scummvm/scummvm/commit/c3384ededcbc06c4e069288c41ac9dd72686c129
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2025-08-12T00:18:41+01:00

Commit Message:
TEENAGENT: Respect speech volume and mute settings for Polish version

Also avoid warnings in non-polish versions every time a dialog is
spoken.

Changed paths:
    engines/teenagent/teenagent.cpp


diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp
index ebcc42c4689..97f8b4792c5 100644
--- a/engines/teenagent/teenagent.cpp
+++ b/engines/teenagent/teenagent.cpp
@@ -1121,6 +1121,10 @@ void TeenAgentEngine::playSoundNow(Pack *pack, uint32 id) {
 }
 
 void TeenAgentEngine::playVoiceNow(Pack *pack, uint32 id) {
+	// Only the Polish version has voices
+	if (_gameDescription->language != Common::PL_POL)
+		return;
+
 	uint size = pack->getSize(id);
 	if (size == 0) {
 		warning("skipping invalid sound %u", id);
@@ -1133,7 +1137,7 @@ void TeenAgentEngine::playVoiceNow(Pack *pack, uint32 id) {
 		debug(3, "playing %u samples...", size);
 
 		Audio::AudioStream *stream = Audio::makeRawStream(data, size, 11025, 0);
-		_mixer->playStream(Audio::Mixer::kSFXSoundType, &_voiceHandle, stream);
+		_mixer->playStream(Audio::Mixer::kSpeechSoundType, &_voiceHandle, stream);
 		_previousVoiceId = id;
 	}
 }




More information about the Scummvm-git-logs mailing list