public interface AudioRenderer
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleanup/destroy the audio system.
|
void |
deleteAudioData(AudioData ad) |
void |
deleteFilter(Filter filter) |
float |
getSourcePlaybackTime(AudioSource src) |
void |
initialize()
Initializes the renderer.
|
void |
pauseAll()
Pauses all Playing audio.
|
void |
pauseSource(AudioSource src) |
void |
playSource(AudioSource src) |
void |
playSourceInstance(AudioSource src) |
void |
resumeAll()
Resumes all audio paused by
pauseAll() . |
void |
setEnvironment(Environment env)
Sets the environment, used for reverb effects.
|
void |
setListener(Listener listener) |
void |
stopSource(AudioSource src) |
void |
update(float tpf)
Update the audio system.
|
void |
updateListenerParam(Listener listener,
ListenerParam param) |
void |
updateSourceParam(AudioSource src,
AudioParam param) |
void setListener(Listener listener)
listener
- The listener camera, all 3D sounds will be
oriented around the listener.void setEnvironment(Environment env)
env
- The environment to set.AudioNode.setReverbEnabled(boolean)
void playSourceInstance(AudioSource src)
void playSource(AudioSource src)
void pauseSource(AudioSource src)
void stopSource(AudioSource src)
void updateSourceParam(AudioSource src, AudioParam param)
void updateListenerParam(Listener listener, ListenerParam param)
float getSourcePlaybackTime(AudioSource src)
void deleteFilter(Filter filter)
void deleteAudioData(AudioData ad)
void initialize()
void update(float tpf)
tpf
- Time per frame.void pauseAll()
void resumeAll()
pauseAll()
.
To be used when the app is brought back to the foreground.void cleanup()