Package gaiasky.util
Class MusicManager
java.lang.Object
gaiasky.util.MusicManager
- All Implemented Interfaces:
IObserver
This guy is in charge of managing the music playlist and actually
playing the sounds
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
dispose()
float
Gets the current play position in secondsfloat
static void
initialize
(Path... folders) static boolean
boolean
void
next()
void
Event notification call.void
pause()
void
play()
void
void
previous()
void
reload()
void
setVolume
(float volume) Sets the seeker of this music manager.void
start()
-
Field Details
-
instance
-
-
Constructor Details
-
MusicManager
-
-
Method Details
-
initialize
-
initialized
public static boolean initialized() -
dispose
public static void dispose() -
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
-
getVolume
public float getVolume() -
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
-
-
next
public void next() -
previous
public void previous() -
playPauseToggle
public void playPauseToggle() -
pause
public void pause() -
play
public void play() -
reload
public void reload() -
notify
Description copied from interface:IObserver
Event notification call.
-