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
| Type | Name | Description |
|---|---|---|
| MicCaptureType | captureType | The type of mic input to capture. |
| int | lengthSec | |
| int | frequency |
StreamingClip
public StreamingClip(
MicCaptureType captureType,
uint samplesLengthInSeconds,
uint sampleRate,
uint channels
)
Parameters
| Type | Name | Description |
|---|---|---|
| MicCaptureType | captureType | The type of mic input to capture. |
| uint | samplesLengthInSeconds | |
| uint | sampleRate | |
| uint | channels |
Protected Methods
OnReceiveSamples
Gets called from a thread when new samples are recorded.
protected virtual override void OnReceiveSamples(
float [] samples
)
Parameters
| Type | Name | Description |
|---|---|---|
| float [] | samples |
Reimplements: OnReceiveSamples