aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/wave.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-08-17 13:38:52 -0700
committerChris Robinson <[email protected]>2012-08-17 13:38:52 -0700
commitac4fc4026c3b1b0b9487216399bef04d419b04b8 (patch)
tree730148652e49723e644f7df8107c0c3be3c19821 /Alc/backends/wave.c
parent9737f683150180a5531d276959030ffa0bd35492 (diff)
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.
Diffstat (limited to 'Alc/backends/wave.c')
-rw-r--r--Alc/backends/wave.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/Alc/backends/wave.c b/Alc/backends/wave.c
index 47db5460..fb118ee8 100644
--- a/Alc/backends/wave.c
+++ b/Alc/backends/wave.c
@@ -322,6 +322,14 @@ static void wave_stop_playback(ALCdevice *device)
}
+static ALint64 wave_get_latency(ALCdevice *device)
+{
+ /* FIXME: time until next update + "safe" offset */
+ (void)device;
+ return 0;
+}
+
+
static const BackendFuncs wave_funcs = {
wave_open_playback,
wave_close_playback,
@@ -333,7 +341,8 @@ static const BackendFuncs wave_funcs = {
NULL,
NULL,
NULL,
- NULL
+ NULL,
+ wave_get_latency
};
ALCboolean alc_wave_init(BackendFuncs *func_list)