aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/solaris.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/solaris.c')
-rw-r--r--Alc/solaris.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Alc/solaris.c b/Alc/solaris.c
index 444cab58..cff744ae 100644
--- a/Alc/solaris.c
+++ b/Alc/solaris.c
@@ -266,6 +266,11 @@ static ALCuint solaris_available_samples(ALCdevice *pDevice)
return 0;
}
+static ALuint64 solaris_get_time(ALCdevice *Device)
+{
+ return Device->SamplesPlayed * 1000000000 / Device->Frequency;
+}
+
BackendFuncs solaris_funcs = {
solaris_open_playback,
@@ -277,7 +282,8 @@ BackendFuncs solaris_funcs = {
solaris_start_capture,
solaris_stop_capture,
solaris_capture_samples,
- solaris_available_samples
+ solaris_available_samples,
+ solaris_get_time
};
void alc_solaris_init(BackendFuncs *func_list)