[Scummvm-cvs-logs] scummvm master -> 150011b843e865d99322417e45ba53d6a64ff34b

Strangerke Strangerke at scummvm.org
Sun Jun 24 23:49:31 CEST 2012


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:
150011b843 CGE: Fix FX stereo


Commit: 150011b843e865d99322417e45ba53d6a64ff34b
    https://github.com/scummvm/scummvm/commit/150011b843e865d99322417e45ba53d6a64ff34b
Author: Strangerke (strangerke at scummvm.org)
Date: 2012-06-24T14:49:03-07:00

Commit Message:
CGE: Fix FX stereo

Changed paths:
    engines/cge/sound.cpp



diff --git a/engines/cge/sound.cpp b/engines/cge/sound.cpp
index 7f74794..b378898 100644
--- a/engines/cge/sound.cpp
+++ b/engines/cge/sound.cpp
@@ -91,6 +91,12 @@ void Sound::sndDigiStart(SmpInfo *PSmpInfo) {
 	// Start the new sound
 	_vm->_mixer->playStream(Audio::Mixer::kSFXSoundType, &_soundHandle,
 		Audio::makeLoopingAudioStream(_audioStream, (uint)PSmpInfo->_counter));
+
+	// CGE pan:
+	// 8 = Center
+	// Less = Left
+	// More = Right
+	_vm->_mixer->setChannelBalance(_soundHandle, (int8)CLIP(((PSmpInfo->_span - 8) * 16), -127, 127));
 }
 
 void Sound::stop() {






More information about the Scummvm-git-logs mailing list