Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SoundTrack

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

constructor

Properties

idSearch playground for id

id: number

The unique identifier of the sound track in the scene.

soundCollectionSearch playground for soundCollection

soundCollection: Array<Sound>

The list of sounds included in the sound track.

Methods

addSoundSearch playground for addSound

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

    ignorenaming

    Parameters

    • sound: Sound

      define the sound to add

    Returns void

connectToAnalyserSearch playground for connectToAnalyser

  • connectToAnalyser(analyser: Analyser): void

disposeSearch playground for dispose

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

    Returns void

removeSoundSearch playground for removeSound

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

    ignorenaming

    Parameters

    • sound: Sound

      define the sound to remove

    Returns void

setVolumeSearch playground for setVolume

  • 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

switchPanningModelToEqualPowerSearch playground for switchPanningModelToEqualPower

  • switchPanningModelToEqualPower(): void

switchPanningModelToHRTFSearch playground for switchPanningModelToHRTF

  • switchPanningModelToHRTF(): void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method