enableSilencePadding
If true, buffers produced by ConsumeSampleFrames will get padded when silence if there are less available than asked for. Otherwise, the extra sample frames in the buffer will be left unchanged.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Property
- Namespace: UnityEngine.Experimental.Audio
- Assembly: UnityEngine.AudioModule
public bool enableSilencePadding { get; set; }
Remarks
Without silence padding, AudioSampleProvider.ConsumeSampleFrames will return how many sample frames of the buffer passed were acutally written to, using the available sample frames, and the rest of the buffer will be left intact.
With silence padding enabled, the method will completely fill the buffer passed in and provide silence if needed, in case there were not enough available sample frames.