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
Type | Name | Description |
---|---|---|
MicCaptureType | captureType | The type of mic input to capture. |
uint | samplesLengthInSeconds | |
uint | channels |
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
Type | Name | Description |
---|---|---|
float [] | samples |
Reimplemented by: OnReceiveSamples, OnReceiveSamples