mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 22:30:22 +00:00
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.
This commit is contained in:
parent
f95a4bceaa
commit
c6deee3801
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user