music player daemon (fork)
4cdcaa8630
Works around a problem where MPD goes into a busy loop because snd_pcm_drain() always returns `-EAGAIN` without making any progress (fixes #425). This problem was triggered by snd_pcm_drain() after snd_pcm_cancel() and snd_pcm_prepare(), but without submitting any data with snd_pcm_writei(). I believe this is a kernel bug: in non-blocking mode, the kernel's snd_pcm_drain() function returns early. In this mode, it only checks whether snd_pcm_drain_done() has been called already, but snd_pcm_drain_done() is never called if no data was submitted. In blocking mode, the following `for` loop detects this condition, so snd_pcm_drain_done() is not necessary, but without this extra check, we get `-EAGAIN` forever. |
||
---|---|---|
android | ||
build | ||
doc | ||
python/build | ||
scripts | ||
src | ||
systemd | ||
test | ||
win32 | ||
.gitignore | ||
.travis.yml | ||
AUTHORS | ||
COPYING | ||
meson_options.txt | ||
meson.build | ||
mpd.svg | ||
NEWS | ||
README.md | ||
valgrind.suppressions |
Music Player Daemon
A daemon for playing music of various formats. Music is played through the server's audio device. The daemon stores info about all available music, and this info can be easily searched and retrieved. Player control, info retrieval, and playlist management can all be managed remotely.
For basic installation instructions read the manual.
Users
Developers
Legal
MPD is released under the GNU General Public License version 2, which is distributed in the COPYING file.