BufferClip
Inherits from:
Clip,
IDisposable
Public Fields
BufferPosition
public int BufferPosition { get; set; }
Public Methods
BufferClip
public BufferClip(
MicCaptureType captureType,
int lengthSec,
int frequency
)
Parameters
Type | Name | Description |
---|---|---|
MicCaptureType | captureType | The type of mic input to capture. |
int | lengthSec | |
int | frequency |
BufferClip
public BufferClip(
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 |
AudioClip FlushToClip
public AudioClip FlushToClip()
int GetData
public int GetData(
float [] samples,
int readPosition,
out int nextReadPosition
)
Parameters
Type | Name | Description |
---|---|---|
float [] | samples | |
int | readPosition | |
out int | nextReadPosition |
int GetData
public int GetData(
float [] samples,
int readPosition
)
Parameters
Type | Name | Description |
---|---|---|
float [] | samples | |
int | readPosition |
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
Public Events
OnReceivedSamples
public Action< float[]> OnReceivedSamples()