aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/pulseaudio.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-12-01 02:23:38 -0800
committerChris Robinson <[email protected]>2009-12-01 02:23:38 -0800
commit6248e986e58ee91f3570d3f6fde96e6a558bedd7 (patch)
treeee0f293a9f09a09cad8d828a0b07fef0ac613cf9 /Alc/pulseaudio.c
parent786b98a01304f8d26afc126b1ec9385f8b283d0b (diff)
Don't complain if the length given by pulse isn't an exact multiple of the period size
Diffstat (limited to 'Alc/pulseaudio.c')
-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;