PlanetKitAudioMicCaptureDelegate

@objc
public protocol PlanetKitAudioMicCaptureDelegate

A delegate protocol for capturing audio from a microphone in PlanetKit.

  • Called when audio is captured from the microphone.

    Declaration

    Swift

    func didCapture(frameCnt: UInt32, channels: UInt32, sampleRate: UInt32, sampleType: PlanetKitAudioSampleType, timestamp: AudioTimeStamp,
                       outData: UnsafeMutableRawPointer!, outDataLen: UInt32)

    Parameters

    frameCnt

    The number of audio frames captured.

    channels

    The number of audio channels.

    sampleRate

    The sample rate of the captured audio.

    sampleType

    The sample type of the captured audio.

    timestamp

    The timestamp of the captured audio.

    outData

    A pointer to the captured audio data.

    outDataLen

    The length of the captured audio data.