diff options
author | Max Horn | 2003-05-20 14:48:24 +0000 |
---|---|---|
committer | Max Horn | 2003-05-20 14:48:24 +0000 |
commit | 5e746a188b53b526eeebd802ddd604242609e630 (patch) | |
tree | 403688ac6c2638a683c2e33dd2d1456504b99b7b | |
parent | a67d45249d1182fc34bb16772f527dbdb74c8872 (diff) | |
download | scummvm-rg350-5e746a188b53b526eeebd802ddd604242609e630.tar.gz scummvm-rg350-5e746a188b53b526eeebd802ddd604242609e630.tar.bz2 scummvm-rg350-5e746a188b53b526eeebd802ddd604242609e630.zip |
init MidiPlayer fully
svn-id: r7730
-rw-r--r-- | simon/midi.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/simon/midi.cpp b/simon/midi.cpp index 928c1a0d5d..1741b66170 100644 --- a/simon/midi.cpp +++ b/simon/midi.cpp @@ -37,10 +37,16 @@ MidiPlayer::MidiPlayer (OSystem *system) { _parser = 0; _data = 0; + memset(_volumeTable, 0, sizeof(_volumeTable)); _masterVolume = 255; _paused = false; _currentTrack = 255; + _num_songs = 0; + memset(_songs, 0, sizeof(_songs)); + memset(_song_sizes, 0, sizeof(_song_sizes)); + + _midi_sfx_toggle = false } MidiPlayer::~MidiPlayer() { |