Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SoundAsset

Audio file stored in Space. Sound assets can be played as global Sound or as spatial SoundItem.

Supported file formats

  • .mp3
  • .wav
  • .aac
  • .m4a

See Sound

See SoundItem

Hierarchy

Index

Constructors

Properties

Methods

Constructors

Properties

name: string
returns

original name of this asset derived from uploaded file.

type: "image" | "image_360" | "image_gif" | "sound" | "video" | "model"
returns

asset type.

Methods

  • Creates a SoundItem from this SoundAsset.

    Parameters

    • position: Vector3

      initial world space position of SoundItem.

    Returns SoundItem

    created SoundItem.

  • Parameters

    • onCanPlay: ((t: Sound) => void)

    Returns Sound

  • Returns Sound