mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user