Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Sound

Hierarchy

  • SoundSource
    • Sound

Index

Constructors

constructor

Methods

getAttenuation

  • getAttenuation(): number

getBuffer

getLoop

  • getLoop(): boolean

getMinDistance

  • getMinDistance(): number

getPitch

  • getPitch(): number

getRelativeToListener

  • getRelativeToListener(): boolean

getStatus

  • getStatus(): Status

getVolume

  • getVolume(): number

isRelativeToListener

  • isRelativeToListener(): boolean

pause

  • pause(): void

play

  • play(): void

setAttenuation

  • setAttenuation(attenuation: number): void
  • Parameters

    • attenuation: number

    Returns void

setBuffer

setLoop

  • setLoop(loop: boolean): void

setMinDistance

  • setMinDistance(distance: number): void
  • Parameters

    • distance: number

    Returns void

setPitch

  • setPitch(pitch: number): void

setRelativeToListener

  • setRelativeToListener(relative: boolean): void
  • Parameters

    • relative: boolean

    Returns void

setVolume

  • setVolume(volume: number): void
  • Parameters

    • volume: number

    Returns void

stop

  • stop(): void

Generated using TypeDoc