summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-04 21:53:00 +0100
committerAlessandro Ghedini <alessandro@ghedini.me>2014-12-07 23:57:34 +0100
commit487fcea6f47297f747a0ffe2f859e59098c37692 (patch)
tree2629b31287954c3b19b2ac0623f184f21e4f39bf /etc
parent63a31db0a3f7898b738e60d823efdf38c1c1087c (diff)
downloadmpv-487fcea6f47297f747a0ffe2f859e59098c37692.tar.bz2
mpv-487fcea6f47297f747a0ffe2f859e59098c37692.tar.xz
ao_alsa: try to fallback to "default" device if device is busy
ALSA is crap. It's impossible to make multichannel playback just do the right thing. dmix (the default on most distros) can do stereo only, and will refuse to play multichannel. On the other hand, if you try like mpv (and mplayer) to open a multichannel device (like "surround51" etc.), this will actually open a hardware device, which will either fail if dmix is active, or block out dmix if opening succeeds. This commit falls back to "default" (i.e. dmix) if opening a multichannel device fails, which is a tiny step towards the right behavior. (Although fixing it fully is impossible.)
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions