Creates a CMAudioFormatDescription from a big-endian SoundDescription data structure.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
Framework
- Core Media
Declaration
OSStatus CMAudioFormatDescriptionCreateFromBigEndianSoundDescriptionData(CFAllocator Ref allocator, const uint8 _t *soundDescriptionData, size _t size, CMSound Description Flavor flavor, CMAudio Format Description Ref _Nullable *formatDescriptionOut);
Parameters
allocator
Allocator to use for allocating the CMAudioFormatDescription object. May be NULL.
soundDescriptionData
SoundDescription data structure in big-endian byte ordering.
soundDescriptionSize
Size of SoundDescription data structure.
soundDescriptionFlavor
kCMSoundDescriptionFlavor constant or NULL for QuickTimeMovie flavor.
audioFormatDescriptionOut
Receives new CMAudioFormatDescription.