summaryrefslogtreecommitdiffstats
path: root/audio/out/ao.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-09 01:30:02 +0100
committerwm4 <wm4@nowhere>2013-11-09 01:30:02 +0100
commit3af094062ef95b6fd004c58bd8cd9ea204f59105 (patch)
treecb0047624ccf124983065837c278ae454bb9c4c7 /audio/out/ao.c
parentd240aa367ed308fdfbc1f5c6419ef4b1281fd1df (diff)
downloadmpv-3af094062ef95b6fd004c58bd8cd9ea204f59105.tar.bz2
mpv-3af094062ef95b6fd004c58bd8cd9ea204f59105.tar.xz
ao_alsa: add magic spdif parameters
I have no idea what these do, but apparently they are needed to inform ALSA about spdif configuration. First, replace the literal constant "6" for the AES0 parameter with the symbolic constants from the ALSA headers (the final value is the same). Second, copy paste some funky looking parameter setup from VLC's alsa output for setting the AES1, AES2, AES3 parameters. (The code is actually not literally copy-pasted, but does exactly the same.) My small but non-zero hope is that this could make DTS-HD work, or at least work into that direction. I can't test spdif stuff though, and for DTS-HD not even opening the ALSA device succeeds on my system.
Diffstat (limited to 'audio/out/ao.c')
0 files changed, 0 insertions, 0 deletions