[vlc-commits] pulse: remove useless double upconversion

Rémi Denis-Courmont git at videolan.org
Wed Oct 23 21:38:21 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Oct 23 20:58:41 2013 +0300| [e5a77344475f0fcaa5a0d7383bc1891044ee62a9] | committer: Rémi Denis-Courmont

pulse: remove useless double upconversion

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e5a77344475f0fcaa5a0d7383bc1891044ee62a9
---

 modules/audio_output/pulse.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index 8a09423..e4c0da5 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -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);



More information about the vlc-commits mailing list