CMSample struct describing a specified sample in a
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
- Core Media
Sample index (0 is the first sample in
On output, points to a single
CMSamplestruct to receive the timing info.
A result code. See Result Codes.
CMSample struct will be returned (i.e. with a sample-specific
decode), even if a single
CMSample struct was used during creation to describe all the samples in the buffer. The timing info struct must be allocated by the caller. If the sample index is not in the range 0...numSamples-1, CMSampleBuffer will be returned. If there is no
timing in this
CMSample, CMSampleBuffer will be returned.