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

athrxx noreply at scummvm.org
Thu Sep 26 21:07:16 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:
eb6d6bb053 SCUMM: (INDY3/MAC) - fix size argument in sound player


Commit: eb6d6bb0538fe49e7f902599a3edc791b88df6d0
    https://github.com/scummvm/scummvm/commit/eb6d6bb0538fe49e7f902599a3edc791b88df6d0
Author: athrxx (athrxx at scummvm.org)
Date: 2024-09-26T23:06:33+02:00

Commit Message:
SCUMM: (INDY3/MAC) - fix size argument in sound player

(doesn't make any noteable difference, since it gets clipped
to a sensible value, anyway)

Changed paths:
    engines/scumm/players/player_mac_indy3.cpp


diff --git a/engines/scumm/players/player_mac_indy3.cpp b/engines/scumm/players/player_mac_indy3.cpp
index d8cdb4301d3..c9bbb424ce6 100644
--- a/engines/scumm/players/player_mac_indy3.cpp
+++ b/engines/scumm/players/player_mac_indy3.cpp
@@ -400,7 +400,7 @@ bool Indy3MacSnd::startDevices(uint32 outputRate, uint32 pcmDeviceRate, uint32 f
 		return false;
 
 	for (int i = 0; i < mdrv->numChannels(); ++i)
-		mdrv->send(LegacyMusicDriver::kChanWaveform, i, _fourToneSynthWaveForm, _fourToneSynthWaveForm);
+		mdrv->send(LegacyMusicDriver::kChanWaveform, i, _fourToneSynthWaveForm, sizeof(_fourToneSynthWaveForm));
 	_qualHi = true;
 	_16bit = internal16Bit;
 	_mdrv = mdrv;
@@ -497,7 +497,7 @@ void Indy3MacSnd::setQuality(int qual) {
 		FourToneSynthDriver *mdrv = new FourToneSynthDriver(_mixer->mutex(), _16bit);
 		assert(mdrv);
 		for (int i = 0; i < mdrv->numChannels(); ++i)
-			mdrv->send(LegacyMusicDriver::kChanWaveform, i, _fourToneSynthWaveForm, _fourToneSynthWaveForm);
+			mdrv->send(LegacyMusicDriver::kChanWaveform, i, _fourToneSynthWaveForm, sizeof(_fourToneSynthWaveForm));
 		_mdrv = mdrv;
 		_qualHi = true;
 	} else {




More information about the Scummvm-git-logs mailing list