aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/pulseaudio.c4
1 files changed, 2 insertions, 2 deletions
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;