pulsesink: Wait until there is enough room to write an entire segment
authorJan Schmidt <thaytan@noraisin.net>
Fri, 13 Mar 2009 15:40:50 +0000 (15:40 +0000)
committerJan Schmidt <thaytan@noraisin.net>
Fri, 13 Mar 2009 15:40:50 +0000 (15:40 +0000)
commit608d13d4620262bb7e3f9a985b81b608da99c32e
tree706e871773a412dd9637c4a4acd37bdd3f0fa162
parent7782c9f890a0ebcb50797d308dab236e10600d31
pulsesink: Wait until there is enough room to write an entire segment

When trying to write out a segment, wait until there is enough free space
for the entire segment. This helps to reduce ripple in the clock reporting,
where the app might query the playback position while only half a segment
has been written (and is therefore reported by _delay(), even though
the ring buffer has not yet been advanced)
ext/pulse/pulsesink.c