From af3bbb800d709f81c9f30bc4ced26c98ea5eafd6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 15 Dec 2014 17:14:23 +0100 Subject: audio: make native channel count the default instead of stereo downmix This should work well with most audio APIs, except ALSA. A long-winded explanation is provided how to make ALSA multichannel output work. All other AOs should have no such problems. Of course it's possible that previously unknown issues arise, because I assume that enabling multichannel audio is actually relatively rare. This also disables codec downmix by default, which could change the audio output due to different mixing in the codec and libavresample. Fixes #1313. --- options/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'options') diff --git a/options/options.c b/options/options.c index e3afe5ab14..1eb687d1b2 100644 --- a/options/options.c +++ b/options/options.c @@ -749,7 +749,7 @@ const struct MPOpts mp_default_opts = { .sub_visibility = 1, .sub_pos = 100, .sub_speed = 1.0, - .audio_output_channels = MP_CHMAP_INIT_STEREO, + .audio_output_channels = {0}, // auto .audio_output_format = 0, // AF_FORMAT_UNKNOWN .playback_speed = 1., .pitch_correction = 1, -- cgit v1.2.3