|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.audio.android.AndroidAudioRenderer
public class AndroidAudioRenderer
This class is the android implementation for AudioRenderer
Constructor Summary | |
---|---|
AndroidAudioRenderer(android.app.Activity context)
|
Method Summary | |
---|---|
void |
cleanup()
Cleanup/destroy the audio system. |
void |
deleteAudioData(AudioData ad)
|
void |
deleteFilter(Filter filter)
|
void |
initialize()
Initializes the renderer. |
void |
onCompletion(android.media.MediaPlayer mp)
|
void |
onLoadComplete(android.media.SoundPool soundPool,
int sampleId,
int status)
|
void |
pauseAll()
Pause the current playing sounds. |
void |
pauseSource(AudioNode src)
|
void |
playSource(AudioNode src)
|
void |
playSourceInstance(AudioNode src)
Plays using the SoundPool of Android. |
void |
resumeAll()
Resume all paused sounds. |
void |
setEnvironment(Environment env)
Sets the environment, used for reverb effects. |
void |
setListener(Listener listener)
|
void |
stopSource(AudioNode src)
|
void |
update(float tpf)
Update the audio system. |
void |
updateListenerParam(Listener listener,
ListenerParam param)
|
void |
updateSourceParam(AudioNode src,
AudioParam param)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AndroidAudioRenderer(android.app.Activity context)
Method Detail |
---|
public void initialize()
AudioRenderer
initialize
in interface AudioRenderer
public void updateSourceParam(AudioNode src, AudioParam param)
updateSourceParam
in interface AudioRenderer
public void updateListenerParam(Listener listener, ListenerParam param)
updateListenerParam
in interface AudioRenderer
public void update(float tpf)
AudioRenderer
update
in interface AudioRenderer
tpf
- Time per frame.public void setListener(Listener listener)
setListener
in interface AudioRenderer
listener
- The listener camera, all 3D sounds will be
oriented around the listener.public void cleanup()
AudioRenderer
cleanup
in interface AudioRenderer
public void onCompletion(android.media.MediaPlayer mp)
onCompletion
in interface android.media.MediaPlayer.OnCompletionListener
public void playSourceInstance(AudioNode src)
SoundPool
of Android. Due to hard limitation of
the SoundPool: After playing more instances of the sound you only have
the channel of the last played instance.
It is not possible to get information about the state of the soundpool of
a specific streamid, so removing is not possilbe -> noone knows when
sound finished.
playSourceInstance
in interface AudioRenderer
public void onLoadComplete(android.media.SoundPool soundPool, int sampleId, int status)
onLoadComplete
in interface android.media.SoundPool.OnLoadCompleteListener
public void playSource(AudioNode src)
playSource
in interface AudioRenderer
public void pauseAll()
SoundPool
and the
active MediaPlayer
s
public void resumeAll()
public void pauseSource(AudioNode src)
pauseSource
in interface AudioRenderer
public void stopSource(AudioNode src)
stopSource
in interface AudioRenderer
public void deleteAudioData(AudioData ad)
deleteAudioData
in interface AudioRenderer
public void setEnvironment(Environment env)
AudioRenderer
setEnvironment
in interface AudioRenderer
env
- The environment to set.AudioNode.setReverbEnabled(boolean)
public void deleteFilter(Filter filter)
deleteFilter
in interface AudioRenderer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |