From fd24385f027c06e16ea2edda6a74ab424bb0290e Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Wed, 7 Dec 2016 11:32:47 +0300 Subject: Ouch (fixed inverted loop flag, reported in issue #3) --- README.md | 14 ++++++++------ src/adlmidi.cpp | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index baab264..e71b870 100644 --- a/README.md +++ b/README.md @@ -43,12 +43,14 @@ You need to make in the any IDE a library project and put into it next files * adlmidi.h - Library API, use it to communicate with library -* dbopl.h - DOSBOX OPL Emulation header -* fraction.h - Fraction number handling -* adldata.hh - bank structures definition - -* dbopl.cpp - DOSBOX OPL Emulation code -* adlmidi.cpp - code of library +* dbopl.h - DOSBOX OPL Emulation header +* nukedopl3.h - Nuked OPL3 Emulation header +* fraction.h - Fraction number handling +* adldata.hh - bank structures definition + +* dbopl.cpp - DOSBOX OPL Emulation code +* nukedopl3.c - Nuked OPL3 Emulation code +* adlmidi.cpp - code of library * adldata.cpp - Automatically generated dump of FM banks from "fm_banks" directory via "gen_adldata" tool diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 61b6daa..02e78c6 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -2610,7 +2610,7 @@ ADLMIDI_EXPORT void adl_setLoopEnabled(ADL_MIDIPlayer *device, int loopEn) { if(!device) return; - device->QuitWithoutLooping = (loopEn != 0); + device->QuitWithoutLooping = (loopEn == 0); } ADLMIDI_EXPORT void adl_setLogarithmicVolumes(struct ADL_MIDIPlayer *device, int logvol) -- cgit v1.2.3