mixer: keep fractional part of volume setting
commitd4c5b7f4ddd4892f0bda19f6a02d23f5efb24bac
authorUoti Urpala <uau@mplayer2.org>
Sat, 12 Jan 2013 13:19:07 +0000 (12 15:19 +0200)
committerUoti Urpala <uau@mplayer2.org>
Sat, 12 Jan 2013 13:19:07 +0000 (12 15:19 +0200)
treea9b05520a92cacd75e4f59f194d77b4884e8dc2c
parent40ff19c88162e407bb6a1cd409ca0cb857f897de
mixer: keep fractional part of volume setting

mixer_setvolume() accepts float values for volume, but used the
integer function av_clip() to limit range, losing the fractional part
as a side effect. Change the code to use av_clipf() instead. For most
uses this shouldn't make any real difference; actual AO volume
settings may not have that much precision anyway.
mixer.c