aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/wave.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/wave.c')
-rw-r--r--Alc/wave.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/wave.c b/Alc/wave.c
index 61a93570..1b6a41d1 100644
--- a/Alc/wave.c
+++ b/Alc/wave.c
@@ -273,6 +273,8 @@ static ALCboolean wave_reset_playback(ALCdevice *device)
return ALC_FALSE;
}
+ device->TimeRes = (ALuint64)device->UpdateSize * 1000000000 /
+ device->Frequency;
SetDefaultWFXChannelOrder(device);
data->thread = StartThread(WaveProc, device);