Options
All
  • Public
  • Public/Protected
  • All
Menu

It could be useful to isolate your music & sounds on several tracks to better manage volume on a grouped instance of sounds. It will be also used in a future release to apply effects on a specific track.

see

https://doc.babylonjs.com/how_to/playing_sounds_and_music#using-sound-tracks

Hierarchy

  • SoundTrack

Index

Constructors

Properties

id: number

The unique identifier of the sound track in the scene.

soundCollection: Sound[]

The list of sounds included in the sound track.

Methods

  • addSound(sound: Sound): void
  • Adds a sound to this sound track

    ignorenaming

    Parameters

    • sound: Sound

      define the sound to add

    Returns void

  • connectToAnalyser(analyser: Analyser): void
  • dispose(): void
  • Release the sound track and its associated resources

    Returns void

  • removeSound(sound: Sound): void
  • Removes a sound to this sound track

    ignorenaming

    Parameters

    • sound: Sound

      define the sound to remove

    Returns void

  • setVolume(newVolume: number): void
  • Set a global volume for the full sound track.

    Parameters

    • newVolume: number

      Define the new volume of the sound track

    Returns void

  • switchPanningModelToEqualPower(): void
  • switchPanningModelToHRTF(): void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme