diff options
author | Chris Robinson <[email protected]> | 2014-07-04 11:18:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-07-04 22:08:24 -0700 |
commit | 5afc29f65dde15059e2511adbba466c15cc2e3b1 (patch) | |
tree | c8297a8f1b91e909d687deaf56e9b2df310fbd33 /OpenAL32/alFontsound.c | |
parent | f667782df2307ff480ccf85c3fa09dc5f6ceabdb (diff) |
Use a helper function to check valid MIDI controller inputs
Diffstat (limited to 'OpenAL32/alFontsound.c')
-rw-r--r-- | OpenAL32/alFontsound.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/OpenAL32/alFontsound.c b/OpenAL32/alFontsound.c index 1e2c303d..64c2a227 100644 --- a/OpenAL32/alFontsound.c +++ b/OpenAL32/alFontsound.c @@ -871,10 +871,7 @@ void ALfontsound_setModStagei(ALfontsound *self, ALCcontext *context, ALsizei st value == AL_NOTEON_KEY_SOFT || value == AL_KEYPRESSURE_SOFT || value == AL_CHANNELPRESSURE_SOFT || value == AL_PITCHBEND_SOFT || value == AL_PITCHBEND_SENSITIVITY_SOFT || - (value > 0 && value < 120 && !(value == 6 || (value >= 32 && value <= 63) || - (value >= 98 && value <= 101)) - ) - )) + IsValidCtrlInput(value))) SET_ERROR_AND_RETURN(context, AL_INVALID_VALUE); ALfontsound_getModStage(self, stage)->Source[srcidx].Input = value; break; |