AudioClip 音频剪辑

Inherits from Object

A container for audio data.

用于音频数据的一个容器。

An AudioClip stores the audio file either compressed as ogg vorbis or uncompressed.  AudioClips are referenced and used by AudioSources to play sounds.

一个音频剪辑储存压缩的ogg vorbis 或未压缩的音频文件。AudioClips被引用和被用于AudioSources播放声音。

Variables变量

  • length
    The length of the audio clip in seconds (Read Only)
          以秒为单位,音频剪辑的长度。(只读)
  • samples
    The length of the audio clip in samples (Read Only)
          返回采样中,音频剪辑的长度。(只读)
  • channels
    Channels in audio clip (Read Only)
          音频剪辑的声道数。(只读)
  • frequency
    Sample frequency (Read Only)
          返回音频剪辑的采样频率。(只读)
  • isReadyToPlay
    Is a streamed audio clip ready to play? (Read Only)
          流式的音频剪辑已经准备好播放么?(只读)
,