summaryrefslogtreecommitdiffstats
path: root/Alc/pulseaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r--Alc/pulseaudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c
index 6ac7b223..a20e73fb 100644
--- a/Alc/pulseaudio.c
+++ b/Alc/pulseaudio.c
@@ -269,7 +269,7 @@ static void stream_buffer_attr_callback(pa_stream *stream, void *pdata) //{{{
if(data->attr.tlength < data->attr.minreq*2)
AL_PRINT("new tlength (%d) is smaller than two periods (%d x 2)!\n",
data->attr.tlength, data->attr.minreq);
- Device->UpdateSize = data->attr.minreq;
+ Device->UpdateSize = data->attr.minreq / data->frame_size;
Device->NumUpdates = data->attr.tlength/data->attr.minreq;
ProcessContext(NULL);