diff options
author | Chris Robinson <[email protected]> | 2009-12-01 12:21:02 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-12-01 12:21:02 -0800 |
commit | 974d0b4e915ff79affc1fc3932069dbe3df734f1 (patch) | |
tree | 30b00a0a33c98b39fbbb023582293d3017d204c2 /Alc | |
parent | d66832a39c77209a92bde5fbbd944cc500b2570f (diff) |
Fix retrieved update size from pulseaudio
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/pulseaudio.c | 2 |
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); |