From bb3fc091e0a5b9d1faa9198f3a72d1d332ddc85f Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Wed, 18 Oct 2017 03:03:49 +0300 Subject: Wave recording in demo tool and disable loop by default --- src/adlmidi.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/adlmidi.cpp') 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) -- cgit v1.2.3