mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-03-01 15:10:43 +00:00
specify fluid_mod_src flags explicitly
This commit is contained in:
parent
64399b1b01
commit
081595464b
1 changed files with 8 additions and 7 deletions
|
@ -1330,13 +1330,14 @@ fluid_voice_add_mod(fluid_voice_t* voice, fluid_mod_t* mod, int mode)
|
|||
*/
|
||||
|
||||
if (((mod->flags1 & FLUID_MOD_CC) == 0)
|
||||
&& ((mod->src1 != 0) /* SF2.01 section 8.2.1: Constant value */
|
||||
&& (mod->src1 != 2) /* Note-on velocity */
|
||||
&& (mod->src1 != 3) /* Note-on key number */
|
||||
&& (mod->src1 != 10) /* Poly pressure */
|
||||
&& (mod->src1 != 13) /* Channel pressure */
|
||||
&& (mod->src1 != 14) /* Pitch wheel */
|
||||
&& (mod->src1 != 16))) { /* Pitch wheel sensitivity */
|
||||
&& ((mod->src1 != FLUID_MOD_NONE) /* SF2.01 section 8.2.1: Constant value */
|
||||
&& (mod->src1 != FLUID_MOD_VELOCITY) /* Note-on velocity */
|
||||
&& (mod->src1 != FLUID_MOD_KEY) /* Note-on key number */
|
||||
&& (mod->src1 != FLUID_MOD_KEYPRESSURE) /* Poly pressure */
|
||||
&& (mod->src1 != FLUID_MOD_CHANNELPRESSURE) /* Channel pressure */
|
||||
&& (mod->src1 != FLUID_MOD_PITCHWHEEL) /* Pitch wheel */
|
||||
&& (mod->src1 != FLUID_MOD_PITCHWHEELSENS)))/* Pitch wheel sensitivity */
|
||||
{
|
||||
FLUID_LOG(FLUID_WARN, "Ignoring invalid controller, using non-CC source %i.", mod->src1);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue