aboutsummaryrefslogtreecommitdiffhomepage
path: root/player
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-06-25 19:10:24 +0200
committerGravatar wm4 <wm4@nowhere>2015-06-25 19:10:24 +0200
commit5a3cdb8f1e8b14daf11d44ef729a2484982b7305 (patch)
tree57369f90adb2e163dffc86b2649e7ba1d0f08077 /player
parentfd1194de3c4b14126269f2db918c0f8bcf2bf34a (diff)
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.)
Diffstat (limited to 'player')
-rw-r--r--player/command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index 6bc2047250..852f232446 100644
--- a/player/command.c
+++ b/player/command.c
@@ -1664,6 +1664,7 @@ static int property_audiofmt(struct mp_audio a, int action, void *arg)
{"samplerate", SUB_PROP_INT(a.rate)},
{"channel-count", SUB_PROP_INT(a.channels.num)},
{"channels", SUB_PROP_STR(mp_chmap_to_str(&a.channels))},
+ {"hr-channels", SUB_PROP_STR(mp_chmap_to_str_hr(&a.channels))},
{"format", SUB_PROP_STR(af_fmt_to_str(a.format))},
{0}
};