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.)
This commit is contained in:
wm4
2015-06-25 19:10:24 +02:00
parent fd1194de3c
commit 5a3cdb8f1e
7 changed files with 38 additions and 10 deletions

View File

@@ -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

View File

@@ -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