mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12: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:
parent
f388f14c01
commit
557efff690
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user