diff options
author | Chris Robinson <[email protected]> | 2010-07-25 12:54:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-07-25 12:54:50 -0700 |
commit | 46d46c49a87b33ed727a7099aca3dc89e06e57cd (patch) | |
tree | fb5e8d5611de607f6ddb707e1406d71e0bbe251d /Alc/dsound.c | |
parent | 40dd1fb85364e3a9e278ffa7a034638e7718770b (diff) |
Store the time precision with the device
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r-- | Alc/dsound.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |