- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
- Core Media
The allocator to use for allocating the
kto use the default allocator.
CMBlockthat already contains the media data. Must not be
A description of the media data's format. Can be
Number of samples in the
CMSample. Can be 0.
Number of entries in sampleTimingArray. Must be 0, 1, or
CMSamplestructs, one struct per sample. If all samples have the same duration and are in presentation order, you can pass a single
CMSamplestruct with duration set to the duration of one sample,
presentationset to the presentation time of the numerically earliest sample, and
k. The behavior is undefined if samples in a
CMSample(or even in multiple buffers in the same stream) have the same
presentation. Can be
Number of entries in
sample. Must be 0, 1, or
Array of size entries, one entry per sample. If all samples have the same size, you can pass a single size entry containing the size of one sample. Can be
NULLif the samples are non-contiguous in the buffer (eg. non-interleaved audio, where the channel values for a single sample are scattered through the buffer).
Returned newly created
This function is identical to
CMSample except that
data is always
true, and so no
refcon needs to be passed.