From e9822f6012193bf00e81b38b61f3ccbf6fe25cdb Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 10 Sep 2015 23:39:46 +0200 Subject: ao_oss: use new sample format determination code --- audio/out/ao_oss.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/out/ao_oss.c b/audio/out/ao_oss.c index 32190877f6..393c9db780 100644 --- a/audio/out/ao_oss.c +++ b/audio/out/ao_oss.c @@ -313,7 +313,8 @@ static int reopen_device(struct ao *ao, bool allow_format_changes) } } - int try_formats[] = {format, AF_FORMAT_S32, AF_FORMAT_S24, AF_FORMAT_S16, 0}; + int try_formats[AF_FORMAT_COUNT]; + af_get_best_sample_formats(format, try_formats); for (int n = 0; try_formats[n]; n++) { format = try_formats[n]; if (try_format(ao, &format)) -- cgit v1.2.3