From 1d81162d8fb3cb8cd84ec9ffa2af7ab4c25e0351 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 6 Nov 2012 05:29:44 +0000 Subject: [PATCH] - Fix bug from preceding commit: OPL chips were forced stereo. Also, DiskWriterIO::OPLinit() should return the number of initialized chips, not just 0 and 1. SVN r3943 (trunk) --- src/oplsynth/fmopl.cpp | 2 +- src/oplsynth/music_opldumper_mididevice.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oplsynth/fmopl.cpp b/src/oplsynth/fmopl.cpp index ea595c01ab..1bfe1dd5ff 100644 --- a/src/oplsynth/fmopl.cpp +++ b/src/oplsynth/fmopl.cpp @@ -1587,7 +1587,7 @@ public: /* init global tables */ OPL_initalize(&Chip); - Chip.IsStereo = true; + Chip.IsStereo = stereo; Reset(); } diff --git a/src/oplsynth/music_opldumper_mididevice.cpp b/src/oplsynth/music_opldumper_mididevice.cpp index bfd0f212d7..f8fe6089fe 100644 --- a/src/oplsynth/music_opldumper_mididevice.cpp +++ b/src/oplsynth/music_opldumper_mididevice.cpp @@ -189,7 +189,7 @@ int DiskWriterIO::OPLinit(uint numchips, bool dontcare) CurChip = 0; OPLchannels = OPL2CHANNELS * numchips; OPLwriteInitState(); - return 1; + return numchips; } //==========================================================================