Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Music

Hierarchy

  • SoundSource
    • Music

Index

Constructors

constructor

Methods

getAttenuation

  • getAttenuation(): number

getLoop

  • getLoop(): boolean

getMinDistance

  • getMinDistance(): number

getPitch

  • getPitch(): number

getRelativeToListener

  • getRelativeToListener(): boolean

getStatus

  • getStatus(): Status

getVolume

  • getVolume(): number

isRelativeToListener

  • isRelativeToListener(): boolean

openFromFile

  • openFromFile(filename: string): Promise<void>

openFromFileSync

  • openFromFileSync(filename: string): boolean

openFromMemory

  • openFromMemory(buff: Buffer): boolean

pause

  • pause(): void

play

  • play(): void

setAttenuation

  • setAttenuation(attenuation: number): void
  • Parameters

    • attenuation: number

    Returns void

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