From 5db0fbd95ec8790cd1a133bb57f701c5c9f970c0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 9 Nov 2014 11:45:04 +0100 Subject: audio/out: consistently use double return type for get_delay ao_get_delay() returns double, but the get_delay callback still returned float. --- audio/out/ao_coreaudio_exclusive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'audio/out/ao_coreaudio_exclusive.c') diff --git a/audio/out/ao_coreaudio_exclusive.c b/audio/out/ao_coreaudio_exclusive.c index 49560a2e80..af77409534 100644 --- a/audio/out/ao_coreaudio_exclusive.c +++ b/audio/out/ao_coreaudio_exclusive.c @@ -581,12 +581,12 @@ static int get_space(struct ao *ao) return mp_ring_available(p->buffer) / ao->sstride; } -static float get_delay(struct ao *ao) +static double get_delay(struct ao *ao) { // FIXME: should also report the delay of coreaudio itself (hardware + // internal buffers) struct priv *p = ao->priv; - return mp_ring_buffered(p->buffer) / (float)ao->bps; + return mp_ring_buffered(p->buffer) / (double)ao->bps; } static void uninit(struct ao *ao) -- cgit v1.2.3