diff options
author | Wohlstand <admin@wohlnet.ru> | 2018-06-04 01:13:59 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2018-06-04 01:13:59 +0300 |
commit | de2bd5ff8f8ffc3002df396b5e2022d54b75b16f (patch) | |
tree | 7efc3dfa5d6c0f875671c5b3724a6245ab76865b | |
parent | 87e84a89526a5c078f2119eb92422e47923a727a (diff) | |
download | libADLMIDI-de2bd5ff8f8ffc3002df396b5e2022d54b75b16f.tar.gz libADLMIDI-de2bd5ff8f8ffc3002df396b5e2022d54b75b16f.tar.bz2 libADLMIDI-de2bd5ff8f8ffc3002df396b5e2022d54b75b16f.zip |
Small fix of the deprecated "Logarithmic volumes" function
-rw-r--r-- | src/adlmidi.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index e90680a..f7099e1 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -373,6 +373,8 @@ ADLMIDI_EXPORT void adl_setLogarithmicVolumes(struct ADL_MIDIPlayer *device, int play->m_setup.LogarithmicVolumes = (logvol != 0); if(play->m_setup.LogarithmicVolumes) play->opl.ChangeVolumeRangesModel(ADLMIDI_VolumeModel_NativeOPL3); + else + play->opl.ChangeVolumeRangesModel(static_cast<ADLMIDI_VolumeModels>(play->opl.m_volumeScale)); } ADLMIDI_EXPORT void adl_setVolumeRangeModel(struct ADL_MIDIPlayer *device, int volumeModel) |