Class GDXAudio
java.lang.Object
nl.colorize.multimedialib.renderer.libgdx.GDXAudio
- All Implemented Interfaces:
Audio
Uses libGDX's sound system for audio playback. Concurrent playback of the
same audio clip is not supported, though different audio clips can be played
concurrently.
-
Constructor Details
-
GDXAudio
public GDXAudio(com.badlogic.gdx.audio.Sound sound)
-
-
Method Details
-
play
public void play(int volume, boolean loop) Description copied from interface:AudioStarts playing this audio clip.volumeis in the range 0-100, where 100 indicates the audio clip's normal volume and 0 indicates the audio clip is muted. Calling this method does nothing if playback of this audio clip is already in progress. -
stop
public void stop()Description copied from interface:AudioStops playback of this audio clip and resets the playhead to the start of the audio clip. Calling this method does nothing if this audio clip is not currently playing.
-