From a7b4e0b5c5eefb8476836aad094035bd0a5cbcd5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 21 Nov 2010 06:32:59 -0800 Subject: Get rid of the device timer stuff --- Alc/dsound.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'Alc/dsound.c') 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 }; -- cgit v1.2.3