From c6deee380141d1e5d4e99d3491a19f218df239d7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 5 Dec 2014 16:00:17 +0100 Subject: ao_alsa: hackfix mono playback ALSA returns "FL" as channel layout when trying to play mono. mpv and libavresample don't like this; in particular, using libavresample to convert stereo to "FL" fails. --- audio/out/ao_alsa.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index be9363b1d7..86393aef19 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -628,6 +628,9 @@ static int init(struct ao *ao) MP_WARN(ao, "Got unknown channel map from ALSA.\n"); } + if (ao->channels.num == 1) + ao->channels.speaker[0] = MP_SP(FC); + free(alsa_chmap); } #endif -- cgit v1.2.3