Represents a multi-channel audio buffer, allowing channel/frame-based access to the audio samples.
A ChannelBuffer provides a uniform interface for audio processing code regardless of how the samples are stored, internally. When using such a buffer together with Unity APIs, Unity will interpret the buffer layout as get/set through the indexer.
| Property | Description |
|---|---|
| channelCount | Gets the number of audio channels represented in the buffer. |
| frameCount | Gets the number of frame indices available in the buffer. |
| this[int,int] | Gets or sets the sample value at the specified channel and frame. |
| Constructor | Description |
|---|---|
| ChannelBuffer | Creates a new ChannelBuffer instance using the as a backing memory store. |
| Method | Description |
|---|---|
| Clear | Sets all samples in the buffer to zero. |