samples
The length of the audio clip in samples. (Read Only)
読み終わるまでの所要時間 1 分最終更新 13日前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.AudioModule
public int samples { get; }
Remarks
Until the audio data is loaded (see AudioClip.loadState), this reports the length of the imported clip.
WebGL: The browser decodes audio data asynchronously. Once the clip is loaded, this reports the length of the decoded audio, which can differ slightly from the imported length, for example because of encoder padding or because the browser resamples the audio to the sample rate of its audio output.