aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMax Horn2003-06-22 13:48:47 +0000
committerMax Horn2003-06-22 13:48:47 +0000
commitd2b61e9bef797bde839c665ce4867d939e52f37c (patch)
treea3bf9081429aa6bd9e2d117a6c7a7b8d82760820 /sound
parent2a31d107c90190dfc21d2b0d7f2e727d739bb034 (diff)
downloadscummvm-rg350-d2b61e9bef797bde839c665ce4867d939e52f37c.tar.gz
scummvm-rg350-d2b61e9bef797bde839c665ce4867d939e52f37c.tar.bz2
scummvm-rg350-d2b61e9bef797bde839c665ce4867d939e52f37c.zip
properly init member vars instead of using memset
svn-id: r8608
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() {