aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-10-27 19:32:36 +0000
committerPaweł Kołodziejski2002-10-27 19:32:36 +0000
commitbf3505da5c161a448c0431c2ae0c81368a7ae673 (patch)
treec1421f7c6efb45277febcc1263ae1fa64a0cdb13 /sound/mixer.cpp
parentf9195c154c3631e1f9125496063f97c913aee737 (diff)
downloadscummvm-rg350-bf3505da5c161a448c0431c2ae0c81368a7ae673.tar.gz
scummvm-rg350-bf3505da5c161a448c0431c2ae0c81368a7ae673.tar.bz2
scummvm-rg350-bf3505da5c161a448c0431c2ae0c81368a7ae673.zip
don't put samples into stream SoundMixer if sound card is disabled
svn-id: r5338
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r--sound/mixer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index 73aef6178f..6faaf22c67 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -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() {