diff options
author | Wohlstand <admin@wohlnet.ru> | 2016-12-07 18:56:26 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2016-12-07 18:56:26 +0300 |
commit | fb22d6c8bb89a398b36496ecdc29fbb80f8ec77c (patch) | |
tree | c1f697b9c45031b4d588854012bd723bb20078fb /src/adlmidi.cpp | |
parent | d538d57803c7651a36a720eb4ae4d53fb0efacab (diff) | |
download | libADLMIDI-fb22d6c8bb89a398b36496ecdc29fbb80f8ec77c.tar.gz libADLMIDI-fb22d6c8bb89a398b36496ecdc29fbb80f8ec77c.tar.bz2 libADLMIDI-fb22d6c8bb89a398b36496ecdc29fbb80f8ec77c.zip |
Ooops
Fixed wrong generated sound in some cases.
DBOPL has own constructors to initialize it's fields. memset no need here
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r-- | src/adlmidi.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 6372f55..265208b 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -429,8 +429,7 @@ struct OPL3 { LogarithmicVolumes = false; #ifdef ADLMIDI_USE_DOSBOX_OPL - DBOPL::Handler emptyChip; - memset(&emptyChip, 0, sizeof(DBOPL::Handler)); + DBOPL::Handler emptyChip; //Constructors inside are will initialize necessary fields #else _opl3_chip emptyChip; memset(&emptyChip, 0, sizeof(_opl3_chip)); |