pub unsafe extern "C" fn MICU_StartSampling(
    encoding: MICU_Encoding,
    sampleRate: MICU_SampleRate,
    offset: u32_,
    size: u32_,
    loop_: bool
) -> Result
Expand description

Begins sampling microphone input.

§Arguments

  • encoding - Encoding of outputted audio.
  • sampleRate - Sample rate of outputted audio.
  • sharedMemAudioOffset - Offset to write audio data to in the shared memory buffer.
  • sharedMemAudioSize - Size of audio data to write to the shared memory buffer. This should be at most “bufferSize - 4”.
  • loop - Whether to loop back to the beginning of the buffer when the end is reached.