diff options
author | Chris Robinson <[email protected]> | 2012-08-17 13:38:52 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-08-17 13:38:52 -0700 |
commit | ac4fc4026c3b1b0b9487216399bef04d419b04b8 (patch) | |
tree | 730148652e49723e644f7df8107c0c3be3c19821 /Alc/backends/solaris.c | |
parent | 9737f683150180a5531d276959030ffa0bd35492 (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/solaris.c')
-rw-r--r-- | Alc/backends/solaris.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Alc/backends/solaris.c b/Alc/backends/solaris.c index 215e7209..4be32a50 100644 --- a/Alc/backends/solaris.c +++ b/Alc/backends/solaris.c @@ -236,6 +236,13 @@ static void solaris_stop_playback(ALCdevice *device) } +static ALint64 solaris_get_latency(ALCdevice *device) +{ + (void)device; + return 0; +} + + static const BackendFuncs solaris_funcs = { solaris_open_playback, solaris_close_playback, @@ -247,7 +254,8 @@ static const BackendFuncs solaris_funcs = { NULL, NULL, NULL, - NULL + NULL, + solaris_get_latency }; ALCboolean alc_solaris_init(BackendFuncs *func_list) |