Package gaia.cu9.ari.gaiaorbit.util
Class MusicManager
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.util.MusicManager
-
-
Field Summary
Fields Modifier and Type Field Description static MusicManager
instance
-
Constructor Summary
Constructors Constructor Description MusicManager(com.badlogic.gdx.files.FileHandle[] dirs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
dispose()
float
getPosition()
Gets the current play position in secondsfloat
getVolume()
static void
initialize(com.badlogic.gdx.files.FileHandle... folders)
static boolean
initialized()
boolean
isPlaying()
void
next()
void
notify(Events event, java.lang.Object... data)
void
pause()
void
play()
void
playPauseToggle()
void
previous()
void
reload()
void
setVolume(float volume)
Sets the seeker of this music manager.void
start()
-
-
-
Field Detail
-
instance
public static MusicManager instance
-
-
Method Detail
-
initialize
public static void initialize(com.badlogic.gdx.files.FileHandle... folders)
-
initialized
public static boolean initialized()
-
start
public void start()
-
isPlaying
public boolean isPlaying()
-
getPosition
public float getPosition()
Gets the current play position in seconds- Returns:
- The play position in seconds
-
setVolume
public void setVolume(float volume)
Sets the seeker of this music manager. The seeker must be given in the range [0,1] with 0 being silent and 1 being the maximum seeker.- Parameters:
volume
-
-
getVolume
public float getVolume()
-
next
public void next()
-
previous
public void previous()
-
playPauseToggle
public void playPauseToggle()
-
pause
public void pause()
-
play
public void play()
-
reload
public void reload()
-
dispose
public static void dispose()
-
-