Commit f1d881e2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

aout: avoid implicit double upconversion

parent d4f50290
...@@ -86,13 +86,13 @@ int playlist_VolumeUp (playlist_t *pl, int value, float *volp) ...@@ -86,13 +86,13 @@ int playlist_VolumeUp (playlist_t *pl, int value, float *volp)
if (aout != NULL) if (aout != NULL)
{ {
float vol = aout_VolumeGet (aout); float vol = aout_VolumeGet (aout);
if (vol >= 0.) if (vol >= 0.f)
{ {
vol += delta; vol += delta;
if (vol < 0.) if (vol < 0.f)
vol = 0.; vol = 0.f;
if (vol > 2.) if (vol > 2.f)
vol = 2.; vol = 2.f;
vol = (roundf (vol / stepSize)) * stepSize; vol = (roundf (vol / stepSize)) * stepSize;
if (volp != NULL) if (volp != NULL)
*volp = vol; *volp = vol;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment