Skip to content

Commit 83c5b67

Browse files
authored
Merge pull request #21 from mywave82/ken-isolate
Next version of adplug library will support multiple instance of Ken Silverman's OPL emulator
2 parents 0a7e6f7 + 2391000 commit 83c5b67

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/adplay.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,11 @@ int main(int argc, char **argv)
442442
case Emu_Ken:
443443
if (cfg.harmonic) {
444444
#ifdef HAVE_ADPLUG_SURROUND
445-
fprintf(stderr, "%s: Sorry, Ken's emulator only supports one instance "
446-
"so does not work properly in surround mode.\n", program_name);
447-
// Leave the code though for future use (once Ken's emu is wrapped up
448-
// in a class or something. It works, it just sounds really bad.)
445+
#ifndef CKEMUOPL_MULTIINSTANCE
446+
fprintf(stderr, "%s: Sorry, Ken's emulator only supports one instance "
447+
"so does not work properly in surround mode in old versions of "
448+
"the adplug library.\n", program_name);
449+
#endif
449450
COPLprops a, b;
450451
a.use16bit = b.use16bit = cfg.bits == 16;
451452
a.stereo = b.stereo = false;

0 commit comments

Comments
 (0)