public class AndroidMini2DxMusic
extends java.lang.Object
implements com.badlogic.gdx.audio.Music
Modifier and Type | Field and Description |
---|---|
protected com.badlogic.gdx.audio.Music.OnCompletionListener |
onCompletionListener |
protected boolean |
wasPlaying |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
float |
getDuration() |
float |
getPosition() |
float |
getVolume() |
boolean |
isLooping() |
boolean |
isPlaying() |
void |
onCompletion(MediaPlayer mp) |
void |
pause() |
void |
play() |
void |
setLooping(boolean isLooping) |
void |
setOnCompletionListener(com.badlogic.gdx.audio.Music.OnCompletionListener listener) |
void |
setPan(float pan,
float volume) |
void |
setPosition(float position) |
void |
setVolume(float volume) |
void |
stop() |
protected boolean wasPlaying
protected com.badlogic.gdx.audio.Music.OnCompletionListener onCompletionListener
public void dispose()
dispose
in interface com.badlogic.gdx.audio.Music
dispose
in interface com.badlogic.gdx.utils.Disposable
public boolean isLooping()
isLooping
in interface com.badlogic.gdx.audio.Music
public boolean isPlaying()
isPlaying
in interface com.badlogic.gdx.audio.Music
public void pause()
pause
in interface com.badlogic.gdx.audio.Music
public void play()
play
in interface com.badlogic.gdx.audio.Music
public void setLooping(boolean isLooping)
setLooping
in interface com.badlogic.gdx.audio.Music
public void setVolume(float volume)
setVolume
in interface com.badlogic.gdx.audio.Music
public float getVolume()
getVolume
in interface com.badlogic.gdx.audio.Music
public void setPan(float pan, float volume)
setPan
in interface com.badlogic.gdx.audio.Music
public void stop()
stop
in interface com.badlogic.gdx.audio.Music
public void setPosition(float position)
setPosition
in interface com.badlogic.gdx.audio.Music
public float getPosition()
getPosition
in interface com.badlogic.gdx.audio.Music
public float getDuration()
public void setOnCompletionListener(com.badlogic.gdx.audio.Music.OnCompletionListener listener)
setOnCompletionListener
in interface com.badlogic.gdx.audio.Music
public void onCompletion(MediaPlayer mp)