mirror of https://github.com/mpv-player/mpv
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:
parent
e4e7fade96
commit
554b4217a0
|
@ -181,7 +181,7 @@ static void ca_fill_asbd_raw(AudioStreamBasicDescription *asbd, int mp_format,
|
||||||
channels_per_buffer = 1;
|
channels_per_buffer = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((mp_format & AF_FORMAT_TYPE_MASK) == AF_FORMAT_F) {
|
if (AF_FORMAT_IS_FLOAT(mp_format)) {
|
||||||
asbd->mFormatFlags |= kAudioFormatFlagIsFloat;
|
asbd->mFormatFlags |= kAudioFormatFlagIsFloat;
|
||||||
} else if (!af_fmt_unsigned(mp_format)) {
|
} else if (!af_fmt_unsigned(mp_format)) {
|
||||||
asbd->mFormatFlags |= kAudioFormatFlagIsSignedInteger;
|
asbd->mFormatFlags |= kAudioFormatFlagIsSignedInteger;
|
||||||
|
|
Loading…
Reference in New Issue