public class AudioEmitter extends QuickEntity implements Audio
| Modifier and Type | Field and Description |
|---|---|
protected AudioPlayer |
audioPlayer |
protected AudioSource |
audioSource
The AudioSource to playback
|
static String |
NAME_UNTITLED_AUDIO_ENTITY |
protected AudioTrigger |
trigger |
destroy, engine, name, NAME_UNTITLED_ENTITY, parent| Constructor and Description |
|---|
AudioEmitter()
Create an "Untitled AudioEmitter"
|
| Modifier and Type | Method and Description |
|---|---|
void |
attached()
Called when an Entity gets attached to an scenegraph
|
AudioPlayer |
getAudioPlayer() |
AudioSource |
getAudioSource()
The AudioSource to playback
|
AudioTrigger |
getTrigger() |
void |
setAudioPlayer(AudioPlayer audioPlayer) |
void |
setAudioSource(AudioSource audioSource)
The AudioSource to playback
|
void |
setTrigger(AudioTrigger trigger) |
void |
update(float delta)
Trigger an update.
|
boxed, canEqual, destroy, destroy, equals, getEngine, getName, getParent, getTransform, hashCode, isDestroy, removed, render, setDestroy, setEngine, setName, setParent, shouldBeDestroyed, toStringpublic static final String NAME_UNTITLED_AUDIO_ENTITY
protected AudioTrigger trigger
protected AudioSource audioSource
protected AudioPlayer audioPlayer
public void attached()
Entityattached in interface Entityattached in class QuickEntity()public void update(float delta)
Updatableupdate in interface Updatableupdate in class QuickEntitydelta - The delta timeUpdatable.update(float)@Generated(value="lombok") public AudioTrigger getTrigger()
@Generated(value="lombok") public void setTrigger(AudioTrigger trigger)
@Generated(value="lombok") public AudioSource getAudioSource()
@Generated(value="lombok") public void setAudioSource(AudioSource audioSource)
audioSource - assoc. AudioSource@Generated(value="lombok") public AudioPlayer getAudioPlayer()
getAudioPlayer in interface Audio@Generated(value="lombok") public void setAudioPlayer(AudioPlayer audioPlayer)
setAudioPlayer in interface AudioCopyright © 2015. All rights reserved.