Skip to main content
Version: 12 Dec 2024

Clip

Streams audio input data into an AudioClip.

Inherits from:
IDisposable

Inherited by:
UnityEngine.XR.MagicLeap.MLAudioInput.BufferClip,
UnityEngine.XR.MagicLeap.MLAudioInput.StreamingClip

Public Methods

Clip

public Clip(
MicCaptureType captureType,
uint samplesLengthInSeconds,
uint channels
)

Parameters

TypeNameDescription
MicCaptureTypecaptureTypeThe type of mic input to capture.
uintsamplesLengthInSeconds
uintchannels

void Dispose

Stops streaming data.

public void Dispose()

Protected Methods

OnReceiveSamples

Gets called from a thread when new samples are recorded.

protected virtual abstract void OnReceiveSamples(
float [] samples
)

Parameters

TypeNameDescription
float []samples

Reimplemented by: OnReceiveSamples, OnReceiveSamples