summaryrefslogtreecommitdiffstats
path: root/core/m_option.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-05 15:25:09 +0200
committerwm4 <wm4@nowhere>2013-05-12 21:24:54 +0200
commit0042735d7aefb2f05a79ba2eae741a63f22ea0c9 (patch)
treeb3fa1b42a3fb27003e6b02c1cdd4feb935c1bb04 /core/m_option.h
parent1e37d35970398856e911487754056db9509f0c5a (diff)
downloadmpv-0042735d7aefb2f05a79ba2eae741a63f22ea0c9.tar.bz2
mpv-0042735d7aefb2f05a79ba2eae741a63f22ea0c9.tar.xz
audio: add channel map API
Unused, will be used in the following commits. Let chmap.h define the number of maximum channels, because that is most convenient.
Diffstat (limited to 'core/m_option.h')
-rw-r--r--core/m_option.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/m_option.h b/core/m_option.h
index fd0ebbd44c..66e7208801 100644
--- a/core/m_option.h
+++ b/core/m_option.h
@@ -60,6 +60,7 @@ extern const m_option_type_t m_option_type_afmt;
extern const m_option_type_t m_option_type_color;
extern const m_option_type_t m_option_type_geometry;
extern const m_option_type_t m_option_type_size_box;
+extern const m_option_type_t m_option_type_chmap;
// Callback used by m_option_type_print_func options.
typedef int (*m_opt_func_full_t)(const m_option_t *, const char *, const char *);
@@ -581,6 +582,9 @@ static inline void m_option_free(const m_option_t *opt, void *dst)
#define OPT_AUDIOFORMAT(...) \
OPT_GENERAL(int, __VA_ARGS__, .type = &m_option_type_afmt)
+#define OPT_CHMAP(...) \
+ OPT_GENERAL(struct mp_chmap, __VA_ARGS__, .type = &m_option_type_chmap)
+
#define M_CHOICES(choices) \
.priv = (void *)&(const struct m_opt_choice_alternatives[]){ \