From e654180a0e0adb3394011deae5e6911887ba53bb Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Tue, 9 Oct 2018 00:54:20 +0300 Subject: Fixed a warning with disabled MIDI sequencer --- src/adlmidi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/adlmidi.cpp') 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 } -- cgit v1.2.3