summaryrefslogtreecommitdiffstats
path: root/Alc/dsound.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r--Alc/dsound.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c
index 5779e5f7..2a7f8de0 100644
--- a/Alc/dsound.c
+++ b/Alc/dsound.c
@@ -462,8 +462,6 @@ static ALCboolean DSoundResetPlayback(ALCdevice *device)
if(SUCCEEDED(hr))
{
- device->TimeRes = (ALuint64)device->UpdateSize * 1000000000 /
- device->Frequency;
device->Format = format;
SetDefaultWFXChannelOrder(device);
pData->thread = StartThread(DSoundProc, device);
@@ -541,11 +539,6 @@ static ALCuint DSoundAvailableSamples(ALCdevice *pDevice)
return 0;
}
-static ALuint64 DSoundGetTime(ALCdevice *Device)
-{
- return Device->SamplesPlayed * 1000000000 / Device->Frequency;
-}
-
BackendFuncs DSoundFuncs = {
DSoundOpenPlayback,
@@ -557,8 +550,7 @@ BackendFuncs DSoundFuncs = {
DSoundStartCapture,
DSoundStopCapture,
DSoundCaptureSamples,
- DSoundAvailableSamples,
- DSoundGetTime
+ DSoundAvailableSamples
};