diff options
author | Wohlstand <admin@wohlnet.ru> | 2018-07-30 19:42:28 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2018-07-30 19:42:28 +0300 |
commit | 6d48a253fe63b5e18ee03dd8c1f090323182f219 (patch) | |
tree | 2baa318d684fc741ad30c097b5e31f6d49ba273f /src/adlmidi.cpp | |
parent | 0f69d504792776967b61f8987ad458c48b4a322f (diff) | |
download | libADLMIDI-6d48a253fe63b5e18ee03dd8c1f090323182f219.tar.gz libADLMIDI-6d48a253fe63b5e18ee03dd8c1f090323182f219.tar.bz2 libADLMIDI-6d48a253fe63b5e18ee03dd8c1f090323182f219.zip |
[Experimental] Partially apply fixes to kode54's pull request
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r-- | src/adlmidi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 751afcf..09cf7ea 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -449,12 +449,12 @@ ADLMIDI_EXPORT void adl_setLoopEnabled(ADL_MIDIPlayer *device, int loopEn) ADLMIDI_EXPORT void adl_setSoftPanEnabled(ADL_MIDIPlayer *device, int softPanEn) { - if (!device) + if(!device) return; MidiPlayer *play = GET_MIDI_PLAYER(device); - if (!play) + if(!play) return; - play->m_synth.m_softPanning = softPanEn != 0; + play->m_synth.m_softPanning = (softPanEn != 0); } /* !!!DEPRECATED!!! */ |