diff options
author | wm4 <wm4@nowhere> | 2013-05-09 12:09:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-12 21:24:56 +0200 |
commit | d9582ad0a41ed5452ad29bf8511e8c6a3bdbe6f8 (patch) | |
tree | 670739580ec0dea28a48a6d345e01bd168a2870c /audio/audio.c | |
parent | ce2515ddb85669b1607989f69d7ec9eb89b42819 (diff) | |
download | mpv-d9582ad0a41ed5452ad29bf8511e8c6a3bdbe6f8.tar.bz2 mpv-d9582ad0a41ed5452ad29bf8511e8c6a3bdbe6f8.tar.xz |
audio/filters: add af_force
Its main purpose is for testing in case channel layout stuff breaks, in
particular in connection with old audio filters.
Diffstat (limited to 'audio/audio.c')
-rw-r--r-- | audio/audio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/audio/audio.c b/audio/audio.c index 248f16790f..8af6a20a1f 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -56,6 +56,12 @@ void mp_audio_copy_config(struct mp_audio *dst, const struct mp_audio *src) dst->rate = src->rate; } +bool mp_audio_config_equals(const struct mp_audio *a, const struct mp_audio *b) +{ + return a->format == b->format && a->rate == b->rate && + mp_chmap_equals(&a->channels, &b->channels); +} + char *mp_audio_fmt_to_str(int srate, const struct mp_chmap *chmap, int format) { char *chstr = mp_chmap_to_str(chmap); |