Skip to main content

moq_encode_audio_frame

Function moq_encode_audio_frame 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn moq_encode_audio_frame( producer: u32, frame: *const moq_audio_frame, ) -> i32
Expand description

Push one audio frame.

frame->data is borrowed for the duration of the call; the producer copies before returning.

ยงSafety

  • frame must point to a valid moq_audio_frame.
  • frame->data must point to frame->data_size bytes.