Fix retrieved update size from pulseaudio

This commit is contained in:
Chris Robinson
2009-12-01 12:21:02 -08:00
parent d66832a39c
commit 974d0b4e91
+1 -1
View File
@@ -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);