diff options
Diffstat (limited to 'Alc/winmm.c')
-rw-r--r-- | Alc/winmm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Alc/winmm.c b/Alc/winmm.c index 317906f7..70398a17 100644 --- a/Alc/winmm.c +++ b/Alc/winmm.c @@ -397,6 +397,11 @@ static void WinMMCaptureSamples(ALCdevice *pDevice, ALCvoid *pBuffer, ALCuint lS alcSetError(pDevice, ALC_INVALID_VALUE); } +static ALuint64 WinMMGetTime(ALCdevice *Device) +{ + return Device->SamplesPlayed * 1000000000 / Device->Frequency; +} + static BackendFuncs WinMMFuncs = { WinMMOpenPlayback, @@ -408,7 +413,8 @@ static BackendFuncs WinMMFuncs = { WinMMStartCapture, WinMMStopCapture, WinMMCaptureSamples, - WinMMAvailableSamples + WinMMAvailableSamples, + WinMMGetTime }; void alcWinMMInit(BackendFuncs *FuncList) |