use of com.jme3.audio.AudioNode in project jmonkeyengine by jMonkeyEngine.
the class SoundHandleJme method play.
public void play() {
if (fileName != null) {
if (node != null) {
node.stop();
}
node = new AudioNode(am, fileName, true);
node.setPositional(false);
node.setVolume(volume);
node.play();
} else {
node.playInstance();
}
}
use of com.jme3.audio.AudioNode in project jmonkeyengine by jMonkeyEngine.
the class SoundEvent method initEvent.
@Override
public void initEvent(Application app, Cinematic cinematic) {
super.initEvent(app, cinematic);
audioNode = new AudioNode(app.getAssetManager(), path, stream);
audioNode.setPositional(false);
setLoopMode(loopMode);
}
use of com.jme3.audio.AudioNode in project jmonkeyengine by jMonkeyEngine.
the class TestMusicStreaming method simpleInitApp.
@Override
public void simpleInitApp() {
assetManager.registerLocator("http://www.vorbis.com/music/", UrlLocator.class);
AudioNode audioSource = new AudioNode(assetManager, "Lumme-Badloop.ogg", true);
audioSource.setPositional(false);
audioSource.setReverbEnabled(false);
audioSource.play();
}
use of com.jme3.audio.AudioNode in project jmonkeyengine by jMonkeyEngine.
the class TestOgg method simpleInitApp.
@Override
public void simpleInitApp() {
System.out.println("Playing without filter");
audioSource = new AudioNode(assetManager, "Sound/Effects/Foot steps.ogg", DataType.Buffer);
audioSource.play();
}
use of com.jme3.audio.AudioNode in project jmonkeyengine by jMonkeyEngine.
the class TestWav method simpleInitApp.
@Override
public void simpleInitApp() {
audioSource = new AudioNode(assetManager, "Sound/Effects/Gun.wav", false);
audioSource.setLooping(false);
}
Aggregations