public void initAudio() {
//System.out.println("############# AUDIO: " + audio_ambient.getStatus());
if (polluxApp != null) {
System.out.println("################# INIT AUDIO ####################");
audio_ambient = new AudioNode(app.getAssetManager(), "Sound/Ambient_test.ogg", false);
audio_ambient.setLooping(true); // for continuous playing
audio_ambient.setVolume(0.2f);
polluxApp.getRootNode().attachChild(audio_ambient);
polluxApp.getAudioRenderer().playSource(audio_ambient);
System.out.println("############# AUDIO: " + audio_ambient.getStatus());
audio_click = new AudioNode(app.getAssetManager(), "Sound/Click_test.wav", false);
audio_click.setLooping(false);
audio_click.setVolume(2);
polluxApp.getRootNode().attachChild(audio_click);
}
}