1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 14:22:17 +00:00

ao_alsa: enable "plug" for non-interleaved float formats too

I have no idea what this code does, but it seems logical it should be
active for all float formats, not just for float with interleaved
access.
This commit is contained in:
wm4 2013-11-30 18:55:39 +01:00
parent f388f14c01
commit 557efff690

View File

@ -388,8 +388,7 @@ static int init(struct ao *ao)
ao->channels.num);
} else {
device = select_chmap(ao);
if (strcmp(device, "default") != 0 && ao->format == AF_FORMAT_FLOAT)
{
if (strcmp(device, "default") != 0 && (ao->format & AF_FORMAT_F)) {
// hack - use the converter plugin (why the heck?)
device = talloc_asprintf(ao, "plug:%s", device);
}