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:
1 parent
e4e7fade96
commit
554b4217a0
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user