aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2018-07-30 19:42:28 +0300
committerWohlstand <admin@wohlnet.ru>2018-07-30 19:42:28 +0300
commit6d48a253fe63b5e18ee03dd8c1f090323182f219 (patch)
tree2baa318d684fc741ad30c097b5e31f6d49ba273f /src/adlmidi.cpp
parent0f69d504792776967b61f8987ad458c48b4a322f (diff)
downloadlibADLMIDI-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.cpp6
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!!! */