com.jme3.audio
インタフェース AudioRenderer


public interface AudioRenderer

Interface to be implemented by audio renderers.


メソッドの概要
 void cleanup()
          Cleanup/destroy the audio system.
 void deleteAudioData(AudioData ad)
           
 void initialize()
          Initializes the renderer.
 void pauseSource(AudioNode src)
           
 void playSource(AudioNode src)
           
 void playSourceInstance(AudioNode src)
           
 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)
           
 

メソッドの詳細

setListener

void setListener(Listener listener)
パラメータ:
listener - The listener camera, all 3D sounds will be oriented around the listener.

setEnvironment

void setEnvironment(Environment env)
Sets the environment, used for reverb effects.

パラメータ:
env - The environment to set.
関連項目:
AudioNode.setReverbEnabled(boolean)

playSourceInstance

void playSourceInstance(AudioNode src)

playSource

void playSource(AudioNode src)

pauseSource

void pauseSource(AudioNode src)

stopSource

void stopSource(AudioNode src)

updateSourceParam

void updateSourceParam(AudioNode src,
                       AudioParam param)

updateListenerParam

void updateListenerParam(Listener listener,
                         ListenerParam param)

deleteAudioData

void deleteAudioData(AudioData ad)

initialize

void initialize()
Initializes the renderer. Should be the first method called before using the system.


update

void update(float tpf)
Update the audio system. Must be called periodically.

パラメータ:
tpf - Time per frame.

cleanup

void cleanup()
Cleanup/destroy the audio system. Call this when app closes.