mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
silence clang int/float/double -Wabsolute-value
This commit is contained in:
parent
dece3c20ca
commit
97c9722236
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue