From 5a3cdb8f1e8b14daf11d44ef729a2484982b7305 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 25 Jun 2015 19:10:24 +0200 Subject: audio: output human-readable channel layouts too This gets you the "logical" channel layout, instead of the exact thing we're sending to the AO. (Tired of the cryptic shit ALSA gives me.) --- DOCS/interface-changes.rst | 1 + DOCS/man/input.rst | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'DOCS') diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index d0b4dfc72d..bf8fd991c6 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -20,6 +20,7 @@ Interface changes :: --- mpv 0.10.0 will be released --- + - add audio-params/channel-count and ``audio-params-out/channel-count props. - add af volume replaygain-fallback suboption - add video-params/stereo-in property - add "keypress", "keydown", and "keyup" commands diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 739268cb16..0ed259f59b 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -1181,6 +1181,11 @@ Property list The channel layout as a string. This is similar to what the ``--audio-channels`` accepts. + ``audio-params/hr-channels`` + As ``channels``, but instead of the possibly cryptic actual layout + sent to the audio device, return a hopefully more human readable form. + (Usually only ``audio-out-params/hr-channels`` makes sense.) + ``audio-params/channel-count`` Number of audio channels. This is redundant to the ``channels`` field described above. @@ -1197,6 +1202,7 @@ Property list "samplerate" MPV_FORMAT_INT64 "channels" MPV_FORMAT_STRING "channel-count" MPV_FORMAT_INT64 + "hr-channels" MPV_FORMAT_STRING ``audio-out-params`` Same as ``audio-params``, but the format of the data written to the audio -- cgit v1.2.3