diff options
author | Robin Gareus <robin@gareus.org> | 2015-06-23 14:27:01 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-06-23 15:46:00 +0200 |
commit | 97c972223663564110702b23c0964d697bc903b4 (patch) | |
tree | c0fe8eb08a906873c8d3921b4e3234e754684941 | |
parent | dece3c20cabb7ce0a9851891ea9aacaf8042ce36 (diff) |
silence clang int/float/double -Wabsolute-value
-rw-r--r-- | libs/plugins/reasonablesynth.lv2/rsynth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/plugins/reasonablesynth.lv2/rsynth.c b/libs/plugins/reasonablesynth.lv2/rsynth.c index 665ae13877..5848bee14c 100644 --- a/libs/plugins/reasonablesynth.lv2/rsynth.c +++ b/libs/plugins/reasonablesynth.lv2/rsynth.c @@ -229,7 +229,7 @@ static void process_key (void *synth, RSSynthChannel* sc = &rs->sc[chn]; const int8_t vel = sc->miditable[note]; const int8_t msg = sc->midimsgs[note]; - const float vol = /* master_volume */ 0.1 * fabsf(vel) / 127.0; + const float vol = /* master_volume */ 0.1f * abs(vel) / 127.f; const float phase = sc->phase[note]; const int8_t sus = sc->sustain; sc->midimsgs[note] &= ~3; |