Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IAudio

Hierarchy

  • IAudio

Implemented by

Index

Properties

fadingIn

fadingIn: boolean

fadingOut

fadingOut: boolean

musicSpeed

musicSpeed: number

Methods

fadeIn

  • fadeIn(): void
  • Returns void

fadeOut

  • fadeOut(): void
  • Returns void

playMusic

  • playMusic(): void
  • Returns void

playMusicTrack

  • playMusicTrack(musicTrack: Music.ShipWrecked | Music.DarkerWorld | Music.TheFirstSpark | Music.NomadsHeartBeat | Music.TheWildBorn | Music.NightOwl | Music.Savage | Music.Underworld | Music.ShudderSounds): void
  • Parameters

    • musicTrack: Music.ShipWrecked | Music.DarkerWorld | Music.TheFirstSpark | Music.NomadsHeartBeat | Music.TheWildBorn | Music.NightOwl | Music.Savage | Music.Underworld | Music.ShudderSounds

    Returns void

playNextMusicTrack

  • playNextMusicTrack(): void
  • Returns void

processEffects

  • processEffects(): void
  • Returns void

queueEffect

  • queueEffect(soundEffect: SfxType.Bow | SfxType.Craft | SfxType.Death | SfxType.Eating | SfxType.Exceptional | SfxType.Fail | SfxType.TreeHit | SfxType.Hit | SfxType.Hurt | SfxType.Miss | SfxType.CreatureHit | SfxType.CreatureNoise | SfxType.PickUp | SfxType.RockHit | SfxType.SandstoneHit | SfxType.Swim | SfxType.Throw | SfxType.Trample | SfxType.Walk | SfxType.Water | SfxType.Click | SfxType.Damaged | SfxType.Chat, x: number, y: number, z: number, delay?: number, speed?: number, noPosition?: boolean): void
  • Parameters

    • soundEffect: SfxType.Bow | SfxType.Craft | SfxType.Death | SfxType.Eating | SfxType.Exceptional | SfxType.Fail | SfxType.TreeHit | SfxType.Hit | SfxType.Hurt | SfxType.Miss | SfxType.CreatureHit | SfxType.CreatureNoise | SfxType.PickUp | SfxType.RockHit | SfxType.SandstoneHit | SfxType.Swim | SfxType.Throw | SfxType.Trample | SfxType.Walk | SfxType.Water | SfxType.Click | SfxType.Damaged | SfxType.Chat
    • x: number
    • y: number
    • z: number
    • Optional delay: number
    • Optional speed: number
    • Optional noPosition: boolean

    Returns void

updateMusicSpeed

  • updateMusicSpeed(speed: number): void
  • Parameters

    • speed: number

    Returns void

updatePosition

  • updatePosition(): void
  • Returns void

updateVolume

  • updateVolume(): void
  • Returns void

Generated using TypeDoc