summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-04 21:53:00 +0100
committerwm4 <wm4@nowhere>2014-12-04 22:42:07 +0100
commitc1e97161f4119a21fb07c7a9ee04a7e422ec9faa (patch)
treee37b79aadff7bd4242f4c7e14fb529afcafa2c81 /video
parente1788384cc0a00fb6c6e817eccf96cc39abc39ad (diff)
downloadmpv-c1e97161f4119a21fb07c7a9ee04a7e422ec9faa.tar.bz2
mpv-c1e97161f4119a21fb07c7a9ee04a7e422ec9faa.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 'video')
0 files changed, 0 insertions, 0 deletions