aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/mixer.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index 9f862ce65c..9bdf893ace 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -155,12 +155,24 @@ public:
SoundMixer::SoundMixer() {
- memset(this,0,sizeof(SoundMixer)); // palmos
+ _syst = 0;
+ _mutex = 0;
+
+ _premixParam = 0;
+ _premixProc = 0;
+
+ for (int i = 0; i != NUM_CHANNELS; i++)
+ _handles[i] = NULL;
+
+ _outputRate = 0;
_volumeTable = (int16 *)calloc(256 * sizeof(int16), 1);
- for (int i = 0; i != NUM_CHANNELS; i++) {
+ _musicVolume = 0;
+
+ _paused = false;
+
+ for (int i = 0; i != NUM_CHANNELS; i++)
_channels[i] = NULL;
- }
}
SoundMixer::~SoundMixer() {