diff options
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r-- | Alc/dsound.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c index 3365f5ef..f636287f 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -538,6 +538,11 @@ static ALCuint DSoundAvailableSamples(ALCdevice *pDevice) return 0; } +static ALuint64 DSoundGetTime(ALCdevice *Device) +{ + return Device->SamplesPlayed * 1000000000 / Device->Frequency; +} + BackendFuncs DSoundFuncs = { DSoundOpenPlayback, @@ -549,7 +554,8 @@ BackendFuncs DSoundFuncs = { DSoundStartCapture, DSoundStopCapture, DSoundCaptureSamples, - DSoundAvailableSamples + DSoundAvailableSamples, + DSoundGetTime }; |