From bf3505da5c161a448c0431c2ae0c81368a7ae673 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sun, 27 Oct 2002 19:32:36 +0000 Subject: don't put samples into stream SoundMixer if sound card is disabled svn-id: r5338 --- sound/mixer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sound') 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() { -- cgit v1.2.3