From ac4fc4026c3b1b0b9487216399bef04d419b04b8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 17 Aug 2012 13:38:52 -0700 Subject: Add a device method to retrieve the active latency This is effectively the time until the next update will be heard by the user, or the closest approximation thereof, in nanoseconds. --- Alc/backends/mmdevapi.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Alc/backends/mmdevapi.c') diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c index 0edd8e60..bffc463a 100644 --- a/Alc/backends/mmdevapi.c +++ b/Alc/backends/mmdevapi.c @@ -937,6 +937,13 @@ static void MMDevApiStopPlayback(ALCdevice *device) } +static ALint64 MMDevApiGetLatency(ALCdevice *device) +{ + (void)device; + return 0; +} + + static const BackendFuncs MMDevApiFuncs = { MMDevApiOpenPlayback, MMDevApiClosePlayback, @@ -948,7 +955,8 @@ static const BackendFuncs MMDevApiFuncs = { NULL, NULL, NULL, - NULL + NULL, + MMDevApiGetLatency }; -- cgit v1.2.3