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/oss.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Alc/oss.c') diff --git a/Alc/oss.c b/Alc/oss.c index 9f3e5ae2..8fda248c 100644 --- a/Alc/oss.c +++ b/Alc/oss.c @@ -268,6 +268,8 @@ static ALCboolean oss_reset_playback(ALCdevice *device) device->Frequency = ossSpeed; device->UpdateSize = info.fragsize / frameSize; device->NumUpdates = info.fragments + 1; + device->TimeRes = (ALuint64)device->UpdateSize * 1000000000 / + device->Frequency; data->data_size = device->UpdateSize * frameSize; data->mix_data = calloc(1, data->data_size); -- cgit v1.2.3