aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/sf2load.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-12-29 04:36:01 -0800
committerChris Robinson <[email protected]>2013-12-29 04:36:01 -0800
commit4c35f7c63243c7ffa251047074d44e6073edb435 (patch)
treea2e58b8cc67a3df124b66437afd7fb6c27414fe1 /Alc/midi/sf2load.c
parent15aa12847d7d2797d5ef37ae428d5ab9afe0753a (diff)
Add chorus and reverb send properties
Diffstat (limited to 'Alc/midi/sf2load.c')
-rw-r--r--Alc/midi/sf2load.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Alc/midi/sf2load.c b/Alc/midi/sf2load.c
index 931b5945..af342a9e 100644
--- a/Alc/midi/sf2load.c
+++ b/Alc/midi/sf2load.c
@@ -809,8 +809,8 @@ static void fillZone(ALuint id, const GenModList *zone)
0, /* 12 - endAddrCoarseOffset */
0, /* 13 - modLfoToVolume */
0, /* 14 - */
- 0, /* 15 - chorusEffectsSend */
- 0, /* 16 - reverbEffectsSend */
+ AL_CHORUS_SEND_SOFT, /* 15 - chorusEffectsSend */
+ AL_REVERB_SEND_SOFT, /* 16 - reverbEffectsSend */
AL_PAN_SOFT, /* 17 - pan */
0, /* 18 - */
0, /* 19 - */
@@ -897,6 +897,8 @@ static void fillZone(ALuint id, const GenModList *zone)
break;
if(param == AL_FILTER_RESONANCE_SOFT || param == AL_ATTENUATION_SOFT)
value = maxi(0, value);
+ else if(param == AL_CHORUS_SEND_SOFT || param == AL_REVERB_SEND_SOFT)
+ value = clampi(value, 0, 1000);
else if(param == AL_LOOP_MODE_SOFT)
{
if(!(value == 0 || value == 1 || value == 3))