[Scummvm-cvs-logs] CVS: scummvm/sound mixer.cpp,1.22,1.23

Pawe? Ko?odziejski aquadran at users.sourceforge.net
Sun Oct 27 11:33:02 CET 2002


Update of /cvsroot/scummvm/scummvm/sound
In directory usw-pr-cvs1:/tmp/cvs-serv12225/sound

Modified Files:
	mixer.cpp 
Log Message:
don't put samples into stream SoundMixer if sound card is disabled

Index: mixer.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mixer.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- mixer.cpp	27 Oct 2002 11:41:07 -0000	1.22
+++ mixer.cpp	27 Oct 2002 19:32:36 -0000	1.23
@@ -28,6 +28,9 @@
 SoundMixer::SoundMixer() {
 	_volumeTable = (int16 *)calloc(256 * sizeof(int16), 1);
 	_beginSlots = 0;
+	for (int i = 0; i != NUM_CHANNELS; i++) {
+		_channels[i] = NULL;
+	}
 }
 
 SoundMixer::~SoundMixer() {





More information about the Scummvm-git-logs mailing list