pub unsafe extern "C-unwind" fn CMAudioSampleBufferCreateWithPacketDescriptionsAndMakeDataReadyHandler(
allocator: Option<&CFAllocator>,
data_buffer: Option<&CMBlockBuffer>,
data_ready: bool,
format_description: &CMFormatDescription,
num_samples: CMItemCount,
presentation_time_stamp: CMTime,
packet_descriptions: *const AudioStreamPacketDescription,
sample_buffer_out: NonNull<*mut CMSampleBuffer>,
make_data_ready_handler: CMSampleBufferMakeDataReadyHandler,
) -> i32Available on crate features
CMBase and CMBlockBuffer and CMFormatDescription and CMSampleBuffer and CMTime and block2 and objc2-core-audio-types only.Expand description
Creates an CMSampleBuffer containing audio given packetDescriptions instead of sizing and timing info
See CMAudioSampleBufferCreateWithPacketDescriptions; this variant allows for passing a block to make the data ready.
ยงSafety
packet_descriptionsmust be a valid pointer or null.sample_buffer_outmust be a valid pointer.make_data_ready_handlermust be a valid pointer or null.