summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_openal.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-09 11:45:04 +0100
committerwm4 <wm4@nowhere>2014-11-09 11:45:04 +0100
commit5db0fbd95ec8790cd1a133bb57f701c5c9f970c0 (patch)
treef7a6d9a3c7dc656107ea440c47fefef563313125 /audio/out/ao_openal.c
parent3d7d1f3f264e55857c83b8a94aa24081ae45dd4d (diff)
downloadmpv-5db0fbd95ec8790cd1a133bb57f701c5c9f970c0.tar.bz2
mpv-5db0fbd95ec8790cd1a133bb57f701c5c9f970c0.tar.xz
audio/out: consistently use double return type for get_delay
ao_get_delay() returns double, but the get_delay callback still returned float.
Diffstat (limited to 'audio/out/ao_openal.c')
-rw-r--r--audio/out/ao_openal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/out/ao_openal.c b/audio/out/ao_openal.c
index 52b94299f0..b864bb8a8f 100644
--- a/audio/out/ao_openal.c
+++ b/audio/out/ao_openal.c
@@ -293,12 +293,12 @@ static int play(struct ao *ao, void **data, int samples, int flags)
return num * CHUNK_SAMPLES;
}
-static float get_delay(struct ao *ao)
+static double get_delay(struct ao *ao)
{
ALint queued;
unqueue_buffers();
alGetSourcei(sources[0], AL_BUFFERS_QUEUED, &queued);
- return queued * CHUNK_SAMPLES / (float)ao->samplerate;
+ return queued * CHUNK_SAMPLES / (double)ao->samplerate;
}
#define OPT_BASE_STRUCT struct priv