Skip to main content
Version: 11 Nov 2025

StreamingClip

Inherits from:
Clip,
IDisposable

Public Fields​

UnityAudioClip​


public AudioClip UnityAudioClip { get; set; }


Public Methods​

void ClearBuffer​

public void ClearBuffer()

StreamingClip​

public StreamingClip(
MicCaptureType captureType,
int lengthSec,
int frequency
)

Parameters

TypeNameDescription
MicCaptureTypecaptureTypeThe type of mic input to capture.
intlengthSec
intfrequency

StreamingClip​

public StreamingClip(
MicCaptureType captureType,
uint samplesLengthInSeconds,
uint sampleRate,
uint channels
)

Parameters

TypeNameDescription
MicCaptureTypecaptureTypeThe type of mic input to capture.
uintsamplesLengthInSeconds
uintsampleRate
uintchannels

Protected Methods​

OnReceiveSamples​

Gets called from a thread when new samples are recorded.

protected virtual override void OnReceiveSamples(
float [] samples
)

Parameters

TypeNameDescription
float []samples

Reimplements: OnReceiveSamples