diff options
author | Chris Robinson <[email protected]> | 2010-11-21 06:32:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-21 06:32:59 -0800 |
commit | a7b4e0b5c5eefb8476836aad094035bd0a5cbcd5 (patch) | |
tree | 3a1d54115f2557e5540297625f20961b8b148e62 /Alc/dsound.c | |
parent | bbb45e326c049aef5b4d7e86021f365d206d8bb3 (diff) |
Get rid of the device timer stuff
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r-- | Alc/dsound.c | 10 |
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 }; |