Bandidos
|
Public Member Functions | |
Sound | getSound (String soundKey) |
Music | getMusic (String musicKey) |
void | stopAllSounds () |
void | stopAllMusic () |
void | clean () |
void | disposeSounds () |
void | disposeMusic () |
Public Member Functions inherited from com.mygdx.game.engine.resources.BaseResource | |
void | loadRequest (AssetManager assetManager) |
abstract void | clean () |
Protected Member Functions | |
void | loadResourceMusic (String key, String path) |
void | loadResourceSound (String key, String path) |
Protected Member Functions inherited from com.mygdx.game.engine.resources.BaseResource | |
abstract void | load () |
AssetManager | getAssetManager () |
This class can be inherited to load in audio from the folders and link them to keys. This audio can also be disposed with this class. The audio is put into 2 categories. Music and Sound.
void com.mygdx.game.engine.resources.BaseAudioResources.clean | ( | ) |
void com.mygdx.game.engine.resources.BaseAudioResources.disposeMusic | ( | ) |
Disposes all the music
void com.mygdx.game.engine.resources.BaseAudioResources.disposeSounds | ( | ) |
Disposes all the sounds
Music com.mygdx.game.engine.resources.BaseAudioResources.getMusic | ( | String | musicKey | ) |
Gets the music which was loaded in the 'load' method with the given key
musicKey | linked to the music |
Sound com.mygdx.game.engine.resources.BaseAudioResources.getSound | ( | String | soundKey | ) |
Gets the sound which was loaded in the 'load' method with the given key
soundKey | linked to the Sound |
|
protected |
Loads a resource into memory. This creates a Music type out of an audio clip. Music is automatically set to looping
key | to link the Music under |
path | to the audio file to load as Music |
|
protected |
Loads a resource into memory. This creates a Sound type out of an audio clip.
key | to link the Sound under |
path | to the audio file to load as Sound |
void com.mygdx.game.engine.resources.BaseAudioResources.stopAllMusic | ( | ) |
void com.mygdx.game.engine.resources.BaseAudioResources.stopAllSounds | ( | ) |