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); }