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.) --- player/command.c | 1 + 1 file changed, 1 insertion(+) (limited to 'player/command.c') 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} }; -- cgit v1.2.3