Kiwi.Sound.AudioLibrary Class
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
(
Kiwi.Sound.AudioLibrary
-
game
Parameters:
-
game
Kiwi.GameThe game that this audio library is a member of.
Returns:
Methods
add
(
public
-
audioFile
Adds a new audio file to the audio library.
Parameters:
-
audioFile
Kiwi.Files.File
clear
()
public
Resets the audio library.
objType
()
String
public
The type of object that this is.
Returns:
String:
"AudioLibrary"
rebuild
(
public
-
fileStore
-
state
Rebuild the library from a fileStore. Clears the library and repopulates it.
Parameters:
-
fileStore
Kiwi.Files.FileStore -
state
Kiwi.State
Properties
audio
Object
public
Contains all of the audio files that are available.