diff options
author | Wohlstand <admin@wohlnet.ru> | 2016-12-09 19:15:39 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2016-12-09 19:15:39 +0300 |
commit | 28a253742adfb1ac6199b0f068701f071db6299b (patch) | |
tree | 2416032bd117123cce143d1705fb88ebef295f54 /src/adlmidi.h | |
parent | 6793da0556d1821b2d8d79886ab67a7598e30f35 (diff) | |
download | libADLMIDI-28a253742adfb1ac6199b0f068701f071db6299b.tar.gz libADLMIDI-28a253742adfb1ac6199b0f068701f071db6299b.tar.bz2 libADLMIDI-28a253742adfb1ac6199b0f068701f071db6299b.zip |
Added a changalbe volume ranges model
(to allow banks play sound be more native like to their original implementations)
Diffstat (limited to 'src/adlmidi.h')
-rw-r--r-- | src/adlmidi.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/adlmidi.h b/src/adlmidi.h index e945f29..9c09028 100644 --- a/src/adlmidi.h +++ b/src/adlmidi.h @@ -28,6 +28,16 @@ extern "C" { #endif +enum ADLMIDI_VolumeModels +{ + ADLMIDI_VolumeModel_AUTO = 0, + ADLMIDI_VolumeModel_Generic, + ADLMIDI_VolumeModel_CMF, + ADLMIDI_VolumeModel_DMX, + ADLMIDI_VolumeModel_APOGEE, + ADLMIDI_VolumeModel_9X +}; + struct ADL_MIDIPlayer { unsigned int AdlBank; @@ -37,6 +47,7 @@ struct ADL_MIDIPlayer unsigned int HighVibratoMode; unsigned int AdlPercussionMode; unsigned int LogarithmicVolumes; + int VolumeModel; unsigned int QuitFlag; unsigned int SkipForward; unsigned int QuitWithoutLooping; @@ -92,6 +103,10 @@ extern void adl_setLoopEnabled(struct ADL_MIDIPlayer *device, int loopEn); /*Enable or disable Logariphmic volume changer */ extern void adl_setLogarithmicVolumes(struct ADL_MIDIPlayer *device, int logvol); +/*Set different volume range model */ +extern void adl_setVolumeRangeModel(struct ADL_MIDIPlayer *device, int volumeModel); + + /*Returns string which contains last error message*/ extern const char *adl_errorString(); |