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 TypeMethodDescriptionvoid
dispose()
Needs to be called when the Music is no longer needed.float
Returns the playback position in seconds.float
boolean
boolean
void
pause()
Pauses the play back.void
play()
Starts the play back of the music stream.void
setLooping
(boolean p1) Sets whether the music stream is looping.void
setOnCompletionListener
(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.void
setPan
(float p1, float p2) Sets the panning and volume of this music stream.void
setPosition
(float p1) Set the playback position in seconds.void
setVolume
(float p1) Sets the volume of this music stream.void
stop()
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.Music
Needs to be called when the Music is no longer needed.- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
- Specified by:
dispose
in interfacecom.badlogic.gdx.audio.Music
-
getPosition
public float getPosition()Description copied from interface:com.badlogic.gdx.audio.Music
Returns the playback position in seconds.- Specified by:
getPosition
in interfacecom.badlogic.gdx.audio.Music
-
getVolume
public float getVolume()- Specified by:
getVolume
in interfacecom.badlogic.gdx.audio.Music
- Returns:
- the volume of this music stream.
-
isLooping
public boolean isLooping()- Specified by:
isLooping
in interfacecom.badlogic.gdx.audio.Music
- Returns:
- whether the music stream is playing.
-
isPlaying
public boolean isPlaying()- Specified by:
isPlaying
in interfacecom.badlogic.gdx.audio.Music
- Returns:
- whether this music stream is playing
-
pause
public void pause()Description copied from interface:com.badlogic.gdx.audio.Music
Pauses 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:
pause
in interfacecom.badlogic.gdx.audio.Music
-
play
public void play()Description copied from interface:com.badlogic.gdx.audio.Music
Starts 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:
play
in interfacecom.badlogic.gdx.audio.Music
-
setLooping
public void setLooping(boolean p1) Description copied from interface:com.badlogic.gdx.audio.Music
Sets whether the music stream is looping. This can be called at any time, whether the stream is playing.- Specified by:
setLooping
in 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.Music
Register a callback to be invoked when the end of a music stream has been reached during playback.- Specified by:
setOnCompletionListener
in 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.Music
Sets the panning and volume of this music stream.- Specified by:
setPan
in 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.Music
Set the playback position in seconds.- Specified by:
setPosition
in interfacecom.badlogic.gdx.audio.Music
-
setVolume
public void setVolume(float p1) Description copied from interface:com.badlogic.gdx.audio.Music
Sets 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:
setVolume
in interfacecom.badlogic.gdx.audio.Music
-
stop
public void stop()Description copied from interface:com.badlogic.gdx.audio.Music
Stops a playing or paused Music instance. Next time play() is invoked the Music will start from the beginning.- Specified by:
stop
in interfacecom.badlogic.gdx.audio.Music
-