aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/portaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r--Alc/portaudio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c
index 94eca19e..062c403a 100644
--- a/Alc/portaudio.c
+++ b/Alc/portaudio.c
@@ -250,6 +250,8 @@ static ALCboolean pa_reset_playback(ALCdevice *device)
streamInfo = pPa_GetStreamInfo(data->stream);
device->Frequency = streamInfo->sampleRate;
device->UpdateSize = data->update_size;
+ device->TimeRes = (ALuint64)device->UpdateSize * 1000000000 /
+ device->Frequency;
err = pPa_StartStream(data->stream);
if(err != paNoError)