[alsa-devel] [PATCH] alsa-plugins: Pulse: only underrun if no more data has been written

David Henningsson david.henningsson at canonical.com
Thu Aug 18 17:06:15 CEST 2011


With the new/upcoming version of PulseAudio (0.99.x) there is a protocol 
addition that makes it possible to handle underruns better in the pulse 
plugin.

The attached patch implements that, but it has two flaws I wouldn't mind 
getting some help with if possible:

1) Since this uses the new API function pa_stream_get_underflow_index, 
it won't compile with current stable PulseAudio versions, only the 
upcoming version.

2) So now there are three possibilities for handle_underrun ( 0 = never, 
1 = always, 2 = the new improved one that IMO should be used). Since 
handle_underrun is a bool in the config, it can not be set to "2", only 
0 or 1.

-- 
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-alsa-plugins-Pulse-only-underrun-if-no-more-data-has.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20110818/938da418/attachment-0001.patch 


More information about the Alsa-devel mailing list