aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMax Horn2003-05-20 13:05:14 +0000
committerMax Horn2003-05-20 13:05:14 +0000
commit19f77c0381a708ebf53e216312782b6aa44a35bd (patch)
treebc3e31e136f8b11b69189ccebc26d31f75aa0f69 /backends
parentc8169afe2b888ab900a8a9c12822e09998d0c587 (diff)
downloadscummvm-rg350-19f77c0381a708ebf53e216312782b6aa44a35bd.tar.gz
scummvm-rg350-19f77c0381a708ebf53e216312782b6aa44a35bd.tar.bz2
scummvm-rg350-19f77c0381a708ebf53e216312782b6aa44a35bd.zip
init member vars
svn-id: r7722
Diffstat (limited to 'backends')
-rw-r--r--backends/midi/adlib.cpp19
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() {