diff options
author | Max Kellermann <max@duempel.org> | 2009-11-09 22:22:31 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-09 22:22:31 +0100 |
commit | 54033c74e4393f2d6650539dc41dde7cecffc7a8 (patch) | |
tree | 58ea9c0049afbea8b3bdc525242a4761808d83a1 /src/fd_util.c | |
parent | 8420f1420fba1254b26d812ea90fef59a5cbd867 (diff) | |
download | mpd-54033c74e4393f2d6650539dc41dde7cecffc7a8.tar.gz mpd-54033c74e4393f2d6650539dc41dde7cecffc7a8.tar.xz mpd-54033c74e4393f2d6650539dc41dde7cecffc7a8.zip |
output/alsa: fill period buffer with silence before draining
ALSA passes full period buffers to the hardware. If an application
doesn't finish writing a period, libasound will nonetheless send the
partial buffer (with undefined trailing data). This causes noise at
the end of playback. This patch attempts to track the current
position within the period buffer, and generates silence at the end,
before calling snd_pcm_drain().
Diffstat (limited to 'src/fd_util.c')
0 files changed, 0 insertions, 0 deletions