diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-10-09 00:54:20 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-10-09 00:54:20 +0300 |
commit | e654180a0e0adb3394011deae5e6911887ba53bb (patch) | |
tree | b98b3a1aff2c36c086c3850ee000265a482cf60a /src/adlmidi.cpp | |
parent | 3d70e34b258b1042aeea9dca13480cbb61610999 (diff) | |
download | libADLMIDI-e654180a0e0adb3394011deae5e6911887ba53bb.tar.gz libADLMIDI-e654180a0e0adb3394011deae5e6911887ba53bb.tar.bz2 libADLMIDI-e654180a0e0adb3394011deae5e6911887ba53bb.zip |
Fixed a warning with disabled MIDI sequencer
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r-- | src/adlmidi.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 541dbb4..3ae45eb 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -517,13 +517,14 @@ ADLMIDI_EXPORT void adl_setFullRangeBrightness(struct ADL_MIDIPlayer *device, in ADLMIDI_EXPORT void adl_setLoopEnabled(ADL_MIDIPlayer *device, int loopEn) { +#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER if(!device) return; MidiPlayer *play = GET_MIDI_PLAYER(device); assert(play); -#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER play->m_sequencer->setLoopEnabled(loopEn != 0); #else + ADL_UNUSED(device); ADL_UNUSED(loopEn); #endif } |