ncmixer

ncurses audio mixer for DJ'ing
git clone git://git.2f30.org/ncmixer
Log | Files | Refs | README | LICENSE

commit d72e2c3cda2bc4b736352e4315bd700504f0d2e1
parent fc388c766a69ddf9d1ebadf773e1bbaaf5fe1bba
Author: lostd <lostd@2f30.org>
Date:   Wed,  8 Jun 2016 09:17:13 +0100

Fix abs accuracy

Diffstat:
Mncmixer.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ncmixer.c b/ncmixer.c @@ -501,11 +501,11 @@ loop(void) } /* attenuate inputs based on cross-fader position */ if (xfpos <= 0) { - attenuate(&inputs[0], 1.0); - attenuate(&inputs[1], 1.0 - abs(xfpos)); + attenuate(&inputs[0], 1.0f); + attenuate(&inputs[1], 1.0f - fabsf(xfpos)); } else { - attenuate(&inputs[0], 1.0 - abs(xfpos)); - attenuate(&inputs[1], 1.0); + attenuate(&inputs[0], 1.0f - fabsf(xfpos)); + attenuate(&inputs[1], 1.0f); } out->mix(out, &inputs[0], &inputs[1]); ret = audio_play(out->sio_hdl, out->buf,