Package com.prineside.luaj.mapping.parts
Class LJ_GDX.Music_AG.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX.Music_AG.LIP
- All Implemented Interfaces:
com.badlogic.gdx.audio.Music,com.badlogic.gdx.utils.Disposable,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX.Music_AG
public static class LJ_GDX.Music_AG.LIP
extends InterfaceProxy
implements com.badlogic.gdx.audio.Music
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.badlogic.gdx.audio.Music
com.badlogic.gdx.audio.Music.OnCompletionListener -
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Needs to be called when the Music is no longer needed.floatReturns the playback position in seconds.floatbooleanbooleanvoidpause()Pauses the play back.voidplay()Starts the play back of the music stream.voidsetLooping(boolean p1) Sets whether the music stream is looping.voidsetOnCompletionListener(com.badlogic.gdx.audio.Music.OnCompletionListener p1) Register a callback to be invoked when the end of a music stream has been reached during playback.voidsetPan(float p1, float p2) Sets the panning and volume of this music stream.voidsetPosition(float p1) Set the playback position in seconds.voidsetVolume(float p1) Sets the volume of this music stream.voidstop()Stops a playing or paused Music instance.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.audio.MusicNeeds to be called when the Music is no longer needed.- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Specified by:
disposein interfacecom.badlogic.gdx.audio.Music
-
getPosition
public float getPosition()Description copied from interface:com.badlogic.gdx.audio.MusicReturns the playback position in seconds.- Specified by:
getPositionin interfacecom.badlogic.gdx.audio.Music
-
getVolume
public float getVolume()- Specified by:
getVolumein interfacecom.badlogic.gdx.audio.Music- Returns:
- the volume of this music stream.
-
isLooping
public boolean isLooping()- Specified by:
isLoopingin interfacecom.badlogic.gdx.audio.Music- Returns:
- whether the music stream is playing.
-
isPlaying
public boolean isPlaying()- Specified by:
isPlayingin interfacecom.badlogic.gdx.audio.Music- Returns:
- whether this music stream is playing
-
pause
public void pause()Description copied from interface:com.badlogic.gdx.audio.MusicPauses the play back. If the music stream has not been started yet or has finished playing a call to this method will be ignored.- Specified by:
pausein interfacecom.badlogic.gdx.audio.Music
-
play
public void play()Description copied from interface:com.badlogic.gdx.audio.MusicStarts the play back of the music stream. In case the stream was paused this will resume the play back. In case the music stream is finished playing this will restart the play back.- Specified by:
playin interfacecom.badlogic.gdx.audio.Music
-
setLooping
public void setLooping(boolean p1) Description copied from interface:com.badlogic.gdx.audio.MusicSets whether the music stream is looping. This can be called at any time, whether the stream is playing.- Specified by:
setLoopingin interfacecom.badlogic.gdx.audio.Music- Parameters:
p1- whether to loop the stream
-
setOnCompletionListener
public void setOnCompletionListener(com.badlogic.gdx.audio.Music.OnCompletionListener p1) Description copied from interface:com.badlogic.gdx.audio.MusicRegister a callback to be invoked when the end of a music stream has been reached during playback.- Specified by:
setOnCompletionListenerin interfacecom.badlogic.gdx.audio.Music- Parameters:
p1- the callback that will be run.
-
setPan
public void setPan(float p1, float p2) Description copied from interface:com.badlogic.gdx.audio.MusicSets the panning and volume of this music stream.- Specified by:
setPanin interfacecom.badlogic.gdx.audio.Music- Parameters:
p1- panning in the range -1 (full left) to 1 (full right). 0 is center position.p2- the volume in the range [0,1].
-
setPosition
public void setPosition(float p1) Description copied from interface:com.badlogic.gdx.audio.MusicSet the playback position in seconds.- Specified by:
setPositionin interfacecom.badlogic.gdx.audio.Music
-
setVolume
public void setVolume(float p1) Description copied from interface:com.badlogic.gdx.audio.MusicSets the volume of this music stream. The volume must be given in the range [0,1] with 0 being silent and 1 being the maximum volume.- Specified by:
setVolumein interfacecom.badlogic.gdx.audio.Music
-
stop
public void stop()Description copied from interface:com.badlogic.gdx.audio.MusicStops a playing or paused Music instance. Next time play() is invoked the Music will start from the beginning.- Specified by:
stopin interfacecom.badlogic.gdx.audio.Music
-