AudioFormat property kAudioFormatProperty_ASBDFromMPEGPacket bug fix for macOS 10.12 (Sierra) and iOS 10.0

This thread has been locked. Questions are automatically locked after two months of inactivity, or sooner if deemed necessary by a moderator.

The Audio Format Property Identifier

kAudioFormatProperty_ASBDFromMPEGPacket
is documented as returning a
AudioStreamBasicDescription
for a given MPEG Packet where the specifier is an MPEG Packet.


In versions of OS X and iOS prior to macOS 10.12 (Sierra) and iOS 10.0, the

inSpecifier
to
AudioFormatGetProperty()
for
kAudioFormatProperty_ASBDFromMPEGPacket
was being interpreted as a 4-byte MPEG audio sync word passed by value, rather than what you would expect to pass to this API, a pointer to a full packet.


This issue has been fixed. Developers using this property on older systems should note this behavior change and update their code as required.

Up vote post of theanalogkid
236 views