diff options
author | Max Horn | 2003-05-20 13:05:14 +0000 |
---|---|---|
committer | Max Horn | 2003-05-20 13:05:14 +0000 |
commit | 19f77c0381a708ebf53e216312782b6aa44a35bd (patch) | |
tree | bc3e31e136f8b11b69189ccebc26d31f75aa0f69 /backends/midi/adlib.cpp | |
parent | c8169afe2b888ab900a8a9c12822e09998d0c587 (diff) | |
download | scummvm-rg350-19f77c0381a708ebf53e216312782b6aa44a35bd.tar.gz scummvm-rg350-19f77c0381a708ebf53e216312782b6aa44a35bd.tar.bz2 scummvm-rg350-19f77c0381a708ebf53e216312782b6aa44a35bd.zip |
init member vars
svn-id: r7722
Diffstat (limited to 'backends/midi/adlib.cpp')
-rw-r--r-- | backends/midi/adlib.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/backends/midi/adlib.cpp b/backends/midi/adlib.cpp index 39ded6396e..dbe60235f5 100644 --- a/backends/midi/adlib.cpp +++ b/backends/midi/adlib.cpp @@ -828,12 +828,27 @@ void AdlibPercussionChannel::noteOn (byte note, byte velocity) { MidiDriver_ADLIB::MidiDriver_ADLIB() { uint i; + + _isOpen = false; + _game_SmallHeader = false; + + _adlib_reg_cache = 0; + _mixer = 0; + + _timer_proc = 0; + _timer_param = 0; + + _adlib_timer_counter = 0; + _voice_index = 0; + _next_tick = 0; + for (i = 0; i < ARRAYSIZE(curnote_table); ++i) { + curnote_table[i] = 0; + } + for (i = 0; i < ARRAYSIZE(_parts); ++i) { _parts[i].init (this, i); } _percussion.init (this, 0); - _game_SmallHeader = false; - _isOpen = false; } int MidiDriver_ADLIB::open() { |