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
1 changed files with 2 additions and 1 deletions

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