API Docs for: 1.4.0
Show:

Kiwi.Sound.AudioLibrary Class

Module: Sound
Parent Module: Kiwi

Holds a reference to all of the Audio Files (mp3, ogg, e.t.c) that are accessible on the State that this AudioLibrary is on.

Constructor

Kiwi.Sound.AudioLibrary

(
  • game
)
Kiwi.Sound.AudioLibrary

Parameters:

  • game Kiwi.Game

    The game that this audio library is a member of.

Item Index

Properties

Methods

add

(
  • audioFile
)
public

Adds a new audio file to the audio library.

Parameters:

clear

() public

Resets the audio library.

objType

() String public

The type of object that this is.

Returns:

String:

"AudioLibrary"

rebuild

(
  • fileStore
  • state
)
public

Rebuild the library from a fileStore. Clears the library and repopulates it.

Parameters:

Properties

_game

Kiwi.Game private

The game that the AudioLibrary belongs to.

audio

Object public

Contains all of the audio files that are available.