API

Interface IStaticSoundCloneOptions

StaticSound.clone.

interface IStaticSoundCloneOptions {
    cloneBuffer: boolean;
    outBus: Nullable<PrimaryAudioBus>;
}
Index
cloneBuffer: boolean

Whether to clone the sound buffer when cloning the sound. Defaults to false.

  • If true, the original sound's buffer is cloned, and the cloned sound will use its own copy.
  • If false, the sound buffer is shared with the original sound.

The output bus for the cloned sound. Defaults to null.

  • If not set or null, the cloned sound uses the original sound's outBus.