aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-07-25 12:54:50 -0700
committerChris Robinson <[email protected]>2010-07-25 12:54:50 -0700
commit46d46c49a87b33ed727a7099aca3dc89e06e57cd (patch)
treefb5e8d5611de607f6ddb707e1406d71e0bbe251d /Alc/oss.c
parent40dd1fb85364e3a9e278ffa7a034638e7718770b (diff)
Store the time precision with the device
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c2
1 files changed, 2 insertions, 0 deletions
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);