aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/solaris.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/solaris.c
parent40dd1fb85364e3a9e278ffa7a034638e7718770b (diff)
Store the time precision with the device
Diffstat (limited to 'Alc/solaris.c')
-rw-r--r--Alc/solaris.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/solaris.c b/Alc/solaris.c
index cff744ae..4fbb1942 100644
--- a/Alc/solaris.c
+++ b/Alc/solaris.c
@@ -193,6 +193,8 @@ static ALCboolean solaris_reset_playback(ALCdevice *device)
device->Frequency = info.play.sample_rate;
device->UpdateSize = (info.play.buffer_size/device->NumUpdates) + 1;
+ device->TimeRes = (ALuint64)device->UpdateSize * 1000000000 /
+ device->Frequency;
data->data_size = device->UpdateSize * frameSize;
data->mix_data = calloc(1, data->data_size);