diff options
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r-- | src/adlmidi.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 0e0b024..751afcf 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -447,6 +447,16 @@ ADLMIDI_EXPORT void adl_setLoopEnabled(ADL_MIDIPlayer *device, int loopEn) #endif } +ADLMIDI_EXPORT void adl_setSoftPanEnabled(ADL_MIDIPlayer *device, int softPanEn) +{ + if (!device) + return; + MidiPlayer *play = GET_MIDI_PLAYER(device); + if (!play) + return; + play->m_synth.m_softPanning = softPanEn != 0; +} + /* !!!DEPRECATED!!! */ ADLMIDI_EXPORT void adl_setLogarithmicVolumes(struct ADL_MIDIPlayer *device, int logvol) { |