1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00

ao_coreaudio_utils: use a macro

This is actually the last line of code outside of format.c/h which still
tries to fiddle with the format bitfields.
This commit is contained in:
wm4 2015-06-26 23:04:44 +02:00
parent e4e7fade96
commit 554b4217a0

View File

@ -181,7 +181,7 @@ static void ca_fill_asbd_raw(AudioStreamBasicDescription *asbd, int mp_format,
channels_per_buffer = 1;
}
if ((mp_format & AF_FORMAT_TYPE_MASK) == AF_FORMAT_F) {
if (AF_FORMAT_IS_FLOAT(mp_format)) {
asbd->mFormatFlags |= kAudioFormatFlagIsFloat;
} else if (!af_fmt_unsigned(mp_format)) {
asbd->mFormatFlags |= kAudioFormatFlagIsSignedInteger;