aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2016-12-07 11:32:47 +0300
committerWohlstand <admin@wohlnet.ru>2016-12-07 11:32:47 +0300
commitfd24385f027c06e16ea2edda6a74ab424bb0290e (patch)
treefcba457afb21ed2c6c69413c4247fada4ba56be0
parent67c09baa578d68afd2103aa5d5bff36a09db3d28 (diff)
downloadlibADLMIDI-fd24385f027c06e16ea2edda6a74ab424bb0290e.tar.gz
libADLMIDI-fd24385f027c06e16ea2edda6a74ab424bb0290e.tar.bz2
libADLMIDI-fd24385f027c06e16ea2edda6a74ab424bb0290e.zip
Ouch (fixed inverted loop flag, reported in issue #3)
-rw-r--r--README.md14
-rw-r--r--src/adlmidi.cpp2
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)