Package com.prineside.luaj.mapping.parts
Class LJ_GDX.Sound_AI.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX.Sound_AI.LIP
- All Implemented Interfaces:
com.badlogic.gdx.audio.Sound
,com.badlogic.gdx.utils.Disposable
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX.Sound_AI
public static class LJ_GDX.Sound_AI.LIP
extends InterfaceProxy
implements com.badlogic.gdx.audio.Sound
-
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Releases all the resources.long
loop()
Plays the sound, looping.long
loop
(float p1) Plays the sound, looping.long
loop
(float p1, float p2, float p3) Plays the sound, looping.void
pause()
Pauses all instances of this sound.void
pause
(long p1) Pauses the sound instance with the given id as returned bySound.play()
orSound.play(float)
.long
play()
Plays the sound.long
play
(float p1) Plays the sound.long
play
(float p1, float p2, float p3) Plays the sound.void
resume()
Resumes all paused instances of this sound.void
resume
(long p1) Resumes the sound instance with the given id as returned bySound.play()
orSound.play(float)
.void
setLooping
(long p1, boolean p2) Sets the sound instance with the given id to be looping.void
setPan
(long p1, float p2, float p3) Sets the panning and volume of the sound instance with the given id as returned bySound.play()
orSound.play(float)
.void
setPitch
(long p1, float p2) Changes the pitch multiplier of the sound instance with the given id as returned bySound.play()
orSound.play(float)
.void
setVolume
(long p1, float p2) Changes the volume of the sound instance with the given id as returned bySound.play()
orSound.play(float)
.void
stop()
Stops playing all instances of this sound.void
stop
(long p1) Stops the sound instance with the given id as returned bySound.play()
orSound.play(float)
.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.Sound
Releases all the resources.- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
- Specified by:
dispose
in interfacecom.badlogic.gdx.audio.Sound
-
loop
public long loop()Description copied from interface:com.badlogic.gdx.audio.Sound
Plays the sound, looping. If the sound is already playing, it will be played again, concurrently.- Specified by:
loop
in interfacecom.badlogic.gdx.audio.Sound
- Returns:
- the id of the sound instance if successful, or -1 on failure.
-
loop
public long loop(float p1) Description copied from interface:com.badlogic.gdx.audio.Sound
Plays the sound, looping. If the sound is already playing, it will be played again, concurrently. You need to stop the sound via a call toSound.stop(long)
using the returned id.- Specified by:
loop
in interfacecom.badlogic.gdx.audio.Sound
- Parameters:
p1
- the volume in the range [0, 1]- Returns:
- the id of the sound instance if successful, or -1 on failure.
-
loop
public long loop(float p1, float p2, float p3) Description copied from interface:com.badlogic.gdx.audio.Sound
Plays the sound, looping. If the sound is already playing, it will be played again, concurrently. You need to stop the sound via a call toSound.stop(long)
using the returned id.- Specified by:
loop
in interfacecom.badlogic.gdx.audio.Sound
- Parameters:
p1
- the volume in the range [0,1]p2
- the pitch multiplier, 1 == default, >1 == faster, <1 == slower, the value has to be between 0.5 and 2.0p3
- panning in the range -1 (full left) to 1 (full right). 0 is center position.- Returns:
- the id of the sound instance if successful, or -1 on failure.
-
pause
public void pause()Description copied from interface:com.badlogic.gdx.audio.Sound
Pauses all instances of this sound.- Specified by:
pause
in interfacecom.badlogic.gdx.audio.Sound
-
pause
public void pause(long p1) Description copied from interface:com.badlogic.gdx.audio.Sound
Pauses the sound instance with the given id as returned bySound.play()
orSound.play(float)
. If the sound is no longer playing, this has no effect.- Specified by:
pause
in interfacecom.badlogic.gdx.audio.Sound
- Parameters:
p1
- the sound id
-
play
public long play()Description copied from interface:com.badlogic.gdx.audio.Sound
Plays the sound. If the sound is already playing, it will be played again, concurrently.- Specified by:
play
in interfacecom.badlogic.gdx.audio.Sound
- Returns:
- the id of the sound instance if successful, or -1 on failure.
-
play
public long play(float p1) Description copied from interface:com.badlogic.gdx.audio.Sound
Plays the sound. If the sound is already playing, it will be played again, concurrently.- Specified by:
play
in interfacecom.badlogic.gdx.audio.Sound
- Parameters:
p1
- the volume in the range [0,1]- Returns:
- the id of the sound instance if successful, or -1 on failure.
-
play
public long play(float p1, float p2, float p3) Description copied from interface:com.badlogic.gdx.audio.Sound
Plays the sound. If the sound is already playing, it will be played again, concurrently.- Specified by:
play
in interfacecom.badlogic.gdx.audio.Sound
- Parameters:
p1
- the volume in the range [0,1]p2
- the pitch multiplier, 1 == default, >1 == faster, <1 == slower, the value has to be between 0.5 and 2.0p3
- panning in the range -1 (full left) to 1 (full right). 0 is center position.- Returns:
- the id of the sound instance if successful, or -1 on failure.
-
resume
public void resume()Description copied from interface:com.badlogic.gdx.audio.Sound
Resumes all paused instances of this sound.- Specified by:
resume
in interfacecom.badlogic.gdx.audio.Sound
-
resume
public void resume(long p1) Description copied from interface:com.badlogic.gdx.audio.Sound
Resumes the sound instance with the given id as returned bySound.play()
orSound.play(float)
. If the sound is not paused, this has no effect.- Specified by:
resume
in interfacecom.badlogic.gdx.audio.Sound
- Parameters:
p1
- the sound id
-
setLooping
public void setLooping(long p1, boolean p2) Description copied from interface:com.badlogic.gdx.audio.Sound
Sets the sound instance with the given id to be looping. If the sound is no longer playing this has no effect.s- Specified by:
setLooping
in interfacecom.badlogic.gdx.audio.Sound
- Parameters:
p1
- the sound idp2
- whether to loop or not.
-
setPan
public void setPan(long p1, float p2, float p3) Description copied from interface:com.badlogic.gdx.audio.Sound
Sets the panning and volume of the sound instance with the given id as returned bySound.play()
orSound.play(float)
. If the sound is no longer playing, this has no effect. Note that panning only works for mono sounds, not for stereo sounds!- Specified by:
setPan
in interfacecom.badlogic.gdx.audio.Sound
- Parameters:
p1
- the sound idp2
- panning in the range -1 (full left) to 1 (full right). 0 is center position.p3
- the volume in the range [0,1].
-
setPitch
public void setPitch(long p1, float p2) Description copied from interface:com.badlogic.gdx.audio.Sound
Changes the pitch multiplier of the sound instance with the given id as returned bySound.play()
orSound.play(float)
. If the sound is no longer playing, this has no effect.- Specified by:
setPitch
in interfacecom.badlogic.gdx.audio.Sound
- Parameters:
p1
- the sound idp2
- the pitch multiplier, 1 == default, >1 == faster, <1 == slower, the value has to be between 0.5 and 2.0
-
setVolume
public void setVolume(long p1, float p2) Description copied from interface:com.badlogic.gdx.audio.Sound
Changes the volume of the sound instance with the given id as returned bySound.play()
orSound.play(float)
. If the sound is no longer playing, this has no effect.- Specified by:
setVolume
in interfacecom.badlogic.gdx.audio.Sound
- Parameters:
p1
- the sound idp2
- the volume in the range 0 (silent) to 1 (max volume).
-
stop
public void stop()Description copied from interface:com.badlogic.gdx.audio.Sound
Stops playing all instances of this sound.- Specified by:
stop
in interfacecom.badlogic.gdx.audio.Sound
-
stop
public void stop(long p1) Description copied from interface:com.badlogic.gdx.audio.Sound
Stops the sound instance with the given id as returned bySound.play()
orSound.play(float)
. If the sound is no longer playing, this has no effect.- Specified by:
stop
in interfacecom.badlogic.gdx.audio.Sound
- Parameters:
p1
- the sound id
-