public class LWJGLAudioPlayer extends Object implements AudioPlayer
| Modifier and Type | Field and Description |
|---|---|
protected LWJGLDataBinder |
dataBinder |
protected Map<AudioSource,ScheduledFuture> |
futures |
static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
LWJGLAudioPlayer(LWJGLDataBinder dataBinder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFuture(AudioSource source,
ScheduledFuture future) |
protected void |
cancelFuture(AudioSource source) |
DataBinder |
getDataBinder() |
protected Map<AudioSource,ScheduledFuture> |
getFutures() |
protected AudioSourceState |
getState(int code) |
void |
pause(AudioSource source) |
void |
play(AudioSource source)
Plays the given AudioSource.
|
void |
rewind(AudioSource source) |
void |
stop(AudioSource source)
Stops the given AudioSource.
|
protected void |
updateState(AudioSource source) |
public static final org.slf4j.Logger LOGGER
protected LWJGLDataBinder dataBinder
protected Map<AudioSource,ScheduledFuture> futures
public LWJGLAudioPlayer(LWJGLDataBinder dataBinder)
public void play(AudioSource source)
AudioPlayerAudioSourceState.STOPPED.play in interface AudioPlayersource - AudioSource to play.public void stop(AudioSource source)
AudioPlayerAudioPlayer.play(org.achtern.AchternEngine.core.audio.openal.AudioSource) and
update the playing state in AudioSourcestop in interface AudioPlayersource - AudioSource to stop.public void rewind(AudioSource source)
rewind in interface AudioPlayerpublic void pause(AudioSource source)
pause in interface AudioPlayerpublic DataBinder getDataBinder()
getDataBinder in interface AudioPlayerprotected void updateState(AudioSource source)
protected AudioSourceState getState(int code)
protected void addFuture(AudioSource source, ScheduledFuture future)
protected void cancelFuture(AudioSource source)
@Generated(value="lombok") protected Map<AudioSource,ScheduledFuture> getFutures()
Copyright © 2015. All rights reserved.