diff options
author | wm4 <wm4@nowhere> | 2015-06-25 19:10:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-25 19:10:24 +0200 |
commit | 5a3cdb8f1e8b14daf11d44ef729a2484982b7305 (patch) | |
tree | 57369f90adb2e163dffc86b2649e7ba1d0f08077 /player | |
parent | fd1194de3c4b14126269f2db918c0f8bcf2bf34a (diff) | |
download | mpv-5a3cdb8f1e8b14daf11d44ef729a2484982b7305.tar.bz2 mpv-5a3cdb8f1e8b14daf11d44ef729a2484982b7305.tar.xz |
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.c | 1 |
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} }; |