ChannelBuffer(Span<float>, int)
Creates a new ChannelBuffer instance using the buffer as a backing memory store.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
public ChannelBuffer(Span<float> buffer, int channels)
Parameters
A span of floats that will work as the backing buffer.
The number of audio channels in the buffer
Remarks
Setting content using this will be reflected if another ChannelBuffer is created and the same indices are being read back. No other guarantees are given with respect to layout / packing.