Class TimedDataBuffer
A set of utility methods for ITimedDataBuffer<T>.
Namespace: Unity.LiveCapture
Syntax
public static class TimedDataBuffer
Methods
Create<T>(IInterpolator<T>, Nullable<FrameRate>, Action<T>)
Creates a new ITimedDataBuffer<T> instance.
Declaration
public static ITimedDataBuffer<T> Create<T>(IInterpolator<T> interpolator = null, FrameRate? frameRate = null, Action<T> sampleDiscard = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IInterpolator<T> | interpolator | The IInterpolator<T> to use. Can be null. |
| Nullable<FrameRate> | frameRate | The frame rate of the samples. |
| Action<T> | sampleDiscard | A callback invoked for each sample that is discarded from the buffer. This may be used to dispose samples if needed. |
Returns
| Type | Description |
|---|---|
| ITimedDataBuffer<T> | The new ITimedDataBuffer<T> instance. |
Type Parameters
| Name | Description |
|---|---|
| T | The datatype of the samples. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if |