aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-10-18 03:03:49 +0300
committerWohlstand <admin@wohlnet.ru>2017-10-18 03:03:49 +0300
commitbb3fc091e0a5b9d1faa9198f3a72d1d332ddc85f (patch)
treef045915520ff7785a7f8c4f583de6a2a279e1a1d /src/adlmidi.cpp
parent380d08e1a234efb17cf15a6b6c2d00c52e4fc648 (diff)
downloadlibADLMIDI-bb3fc091e0a5b9d1faa9198f3a72d1d332ddc85f.tar.gz
libADLMIDI-bb3fc091e0a5b9d1faa9198f3a72d1d332ddc85f.tar.bz2
libADLMIDI-bb3fc091e0a5b9d1faa9198f3a72d1d332ddc85f.zip
Wave recording in demo tool and disable loop by default
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r--src/adlmidi.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp
index 11b7c9b..d16fab5 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -40,7 +40,7 @@ ADLMIDI_EXPORT struct ADL_MIDIPlayer *adl_init(long sample_rate)
midi_device->AdlPercussionMode = 0;
midi_device->LogarithmicVolumes = 0;
midi_device->SkipForward = 0;
- midi_device->QuitWithoutLooping = 0;
+ midi_device->loopingIsEnabled = 0;
midi_device->ScaleModulators = 0;
midi_device->delay = 0.0;
midi_device->carry = 0.0;
@@ -177,8 +177,7 @@ ADLMIDI_EXPORT void adl_setScaleModulators(ADL_MIDIPlayer *device, int smod)
ADLMIDI_EXPORT void adl_setLoopEnabled(ADL_MIDIPlayer *device, int loopEn)
{
if(!device) return;
-
- device->QuitWithoutLooping = (loopEn == 0);
+ device->loopingIsEnabled = (loopEn != 0);
}
ADLMIDI_EXPORT void adl_setLogarithmicVolumes(struct ADL_MIDIPlayer *device, int logvol)