diff options
author | Matthew Gregan <[email protected]> | 2016-07-01 12:20:17 +1200 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2016-07-01 12:21:10 +1200 |
commit | de4940260e197592faaed7d3818e85c6aca56197 (patch) | |
tree | bc2d0ef5fe948e21b0547aa8fa8328a9d4c1508d /include | |
parent | b6202a752179aa691fa2af452c1836316376b7c8 (diff) | |
download | cubeb-de4940260e197592faaed7d3818e85c6aca56197.tar.gz cubeb-de4940260e197592faaed7d3818e85c6aca56197.zip |
alsa: Work around audio playback issues with ALSA/dmix configurations.
In some situations (e.g. playing out 44.1kHz audio with a 48kHz dmix
configuration and letting ALSA/dmix resample), we receive wakeups from
poll() that are not aligned with complete refill periods and thus aren't
signalled via POLLOUT.
Rather than relying on POLLOUT, query the available write space and
refill what we can on each wakeup. This will cause libcubeb's
data_callback to be called somewhat more frequently in these situations,
but it's not clear we have a better option (or how much that will
matter).
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions