mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-01 00:21:14 +00:00
complain if modulator source unknown
This commit is contained in:
parent
b7673c0e25
commit
5cc1d9f659
1 changed files with 2 additions and 1 deletions
|
@ -198,6 +198,7 @@ fluid_mod_get_source_value(const unsigned char mod_src,
|
|||
val = fluid_channel_get_pitch_wheel_sensitivity (chan);
|
||||
break;
|
||||
default:
|
||||
FLUID_LOG(FLUID_ERR, "Unknown modulator source '%d', disabling modulator.", mod_src);
|
||||
val = 0.0;
|
||||
}
|
||||
}
|
||||
|
@ -278,7 +279,7 @@ fluid_mod_transform_source_value(fluid_real_t val, unsigned char mod_flags, cons
|
|||
val = (val_norm >= 0.5f)? -1.0f : 1.0f;
|
||||
break;
|
||||
default:
|
||||
FLUID_LOG(FLUID_ERR, "Unknown modulator type %d, disabling modulator.", mod_flags);
|
||||
FLUID_LOG(FLUID_ERR, "Unknown modulator type '%d', disabling modulator.", mod_flags);
|
||||
val = 0.0f;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue