From 46d46c49a87b33ed727a7099aca3dc89e06e57cd Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 25 Jul 2010 12:54:50 -0700 Subject: Store the time precision with the device --- Alc/dsound.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Alc/dsound.c') diff --git a/Alc/dsound.c b/Alc/dsound.c index f636287f..f513f2ef 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -461,6 +461,8 @@ 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); -- cgit v1.2.3