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

pulse: remove useless double upconversion

parent 59d981e5
......@@ -606,8 +606,8 @@ static int VolumeSet(audio_output_t *aout, float vol)
vol *= PA_VOLUME_NORM;
if (unlikely(vol >= PA_VOLUME_MAX))
vol = PA_VOLUME_MAX;
pa_volume_t volume = pa_sw_volume_multiply(lround(vol), sys->base_volume);
pa_volume_t volume = pa_sw_volume_multiply(lroundf(vol), sys->base_volume);
/* Preserve the balance (VLC does not support it). */
pa_cvolume cvolume = sys->cvolume;
pa_cvolume_scale(&cvolume, PA_VOLUME_NORM);
......
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