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

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

Hierarchy

  • SoundTrack

Index

Constructors

constructor

Find examples in Playground

Properties

id

Find examples in Playground
id: number

The unique identifier of the sound track in the scene.

soundCollection

Find examples in Playground
soundCollection: Array<Sound>

The list of sounds included in the sound track.

Methods

AddSound

Find examples in Playground
  • AddSound(sound: Sound): void
  • Adds a sound to this sound track

    ignorenaming

    Parameters

    • sound: Sound

      define the cound to add

    Returns void

RemoveSound

Find examples in Playground
  • RemoveSound(sound: Sound): void
  • Removes a sound to this sound track

    ignorenaming

    Parameters

    • sound: Sound

      define the cound to remove

    Returns void

connectToAnalyser

Find examples in Playground
  • connectToAnalyser(analyser: Analyser): void

dispose

Find examples in Playground
  • dispose(): void
  • Release the sound track and its associated resources

    Returns void

setVolume

Find examples in Playground
  • 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

Find examples in Playground
  • switchPanningModelToEqualPower(): void

switchPanningModelToHRTF

Find examples in Playground
  • switchPanningModelToHRTF(): void

Generated using TypeDoc