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.) --- audio/chmap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'audio/chmap.h') diff --git a/audio/chmap.h b/audio/chmap.h index ba1072547b..b27ec3bda8 100644 --- a/audio/chmap.h +++ b/audio/chmap.h @@ -128,6 +128,9 @@ int mp_chmap_diffn(const struct mp_chmap *a, const struct mp_chmap *b); char *mp_chmap_to_str_buf(char *buf, size_t buf_size, const struct mp_chmap *src); #define mp_chmap_to_str(m) mp_chmap_to_str_buf((char[64]){0}, 64, (m)) +char *mp_chmap_to_str_hr_buf(char *buf, size_t buf_size, const struct mp_chmap *src); +#define mp_chmap_to_str_hr(m) mp_chmap_to_str_hr_buf((char[128]){0}, 128, (m)) + bool mp_chmap_from_str(struct mp_chmap *dst, bstr src); struct mp_log; -- cgit v1.2.3