1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-23 11:47:45 +00:00

ao_oss: use new sample format determination code

This commit is contained in:
wm4 2015-09-10 23:39:46 +02:00
parent e721660e6d
commit e9822f6012

View File

@ -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))