diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-16 22:59:12 +0300 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-21 19:25:30 +0300 |
commit | 879b4a9d3ec89f587f9442fd4c7f1f36d5bd39c3 (patch) | |
tree | 87807f1a0cbb2b23a6cee05647162b210205e5be /libavdevice/pulse_audio_enc.c | |
parent | ea2f04bffe13fb9f89778766ddab1bd4af71c538 (diff) |
lavd/pulse_audio_enc: replace lround by lrint
Here it is mostly a cosmetic change, but there might be benefits in that
there are no compat hacks for lround, while there are for lrint.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavdevice/pulse_audio_enc.c')
-rw-r--r-- | libavdevice/pulse_audio_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c index bc4d1f0516..b419a38d46 100644 --- a/libavdevice/pulse_audio_enc.c +++ b/libavdevice/pulse_audio_enc.c @@ -23,6 +23,7 @@ #include <pulse/error.h> #include "libavformat/avformat.h" #include "libavformat/internal.h" +#include "libavutil/internal.h" #include "libavutil/opt.h" #include "libavutil/time.h" #include "libavutil/log.h" @@ -333,7 +334,7 @@ static int pulse_set_volume(PulseData *s, double volume) pa_volume_t vol; const pa_sample_spec *ss = pa_stream_get_sample_spec(s->stream); - vol = pa_sw_volume_multiply(lround(volume * PA_VOLUME_NORM), s->base_volume); + vol = pa_sw_volume_multiply(lrint(volume * PA_VOLUME_NORM), s->base_volume); pa_cvolume_set(&cvol, ss->channels, PA_VOLUME_NORM); pa_sw_cvolume_multiply_scalar(&cvol, &cvol, vol); pa_threaded_mainloop_lock(s->mainloop); |