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

eriktorbjorn noreply at scummvm.org
Thu Oct 2 05:23:34 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:
e05aaff0ee WAGE: Fix cut-off sound effects


Commit: e05aaff0ee49ce4f294707fff03a85eed0ceb43f
    https://github.com/scummvm/scummvm/commit/e05aaff0ee49ce4f294707fff03a85eed0ceb43f
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2025-10-02T07:22:53+02:00

Commit Message:
WAGE: Fix cut-off sound effects

The size is measured in 16-bit words, not bytes.

Changed paths:
    engines/wage/sound.cpp


diff --git a/engines/wage/sound.cpp b/engines/wage/sound.cpp
index 1b01613628d..ee213abc083 100644
--- a/engines/wage/sound.cpp
+++ b/engines/wage/sound.cpp
@@ -90,7 +90,7 @@ void WageEngine::playSound(Common::String soundName, bool blocking) {
 
 	Sound *s = _world->_sounds[soundName];
 
-	Audio::AudioStream *stream = Audio::makeRawStream(s->_data, s->_size, 11000, Audio::FLAG_UNSIGNED);
+	Audio::AudioStream *stream = Audio::makeRawStream(s->_data, 2 * s->_size, 11000, Audio::FLAG_UNSIGNED);
 
 	_mixer->playStream(Audio::Mixer::kPlainSoundType, &_soundHandle, stream,
 		-1, Audio::Mixer::kMaxChannelVolume, 0, DisposeAfterUse::NO);




More information about the Scummvm-git-logs mailing list