aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/wave.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/wave.c')
-rw-r--r--Alc/wave.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Alc/wave.c b/Alc/wave.c
index 62c3ffc2..61a93570 100644
--- a/Alc/wave.c
+++ b/Alc/wave.c
@@ -334,6 +334,11 @@ static ALCboolean wave_open_capture(ALCdevice *pDevice, const ALCchar *deviceNam
return ALC_FALSE;
}
+static ALuint64 wave_get_time(ALCdevice *Device)
+{
+ return Device->SamplesPlayed * 1000000000 / Device->Frequency;
+}
+
BackendFuncs wave_funcs = {
wave_open_playback,
@@ -345,7 +350,8 @@ BackendFuncs wave_funcs = {
NULL,
NULL,
NULL,
- NULL
+ NULL,
+ wave_get_time
};
void alc_wave_init(BackendFuncs *func_list)