From 557efff690c7c047466d3f9b613b1d5416ef1f70 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 30 Nov 2013 18:55:39 +0100 Subject: 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. --- audio/out/ao_alsa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'audio') diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index 2d256c7e8d..2c6df71cd0 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -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); } -- cgit v1.2.3