From 6248e986e58ee91f3570d3f6fde96e6a558bedd7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 1 Dec 2009 02:23:38 -0800 Subject: Don't complain if the length given by pulse isn't an exact multiple of the period size --- Alc/pulseaudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/pulseaudio.c') diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 722df4f4..9dfaf6ee 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -250,8 +250,8 @@ static void stream_buffer_attr_callback(pa_stream *stream, void *pdata) //{{{ SuspendContext(NULL); data->attr = *(ppa_stream_get_buffer_attr(stream)); - if((data->attr.tlength%data->attr.minreq) != 0) - AL_PRINT("new tlength (%d) is not a multiple of minreq (%d)!\n", + 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->NumUpdates = data->attr.tlength/data->attr.minreq; -- cgit v1.2.3