* Headless context will no longer initialize audio renderer

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8315 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 14 years ago
parent ca628fe5d6
commit 73f073c794
  1. 2
      engine/src/core/com/jme3/app/Application.java

@ -207,7 +207,7 @@ public class Application implements SystemListener {
}
private void initAudio(){
if (settings.getAudioRenderer() != null){
if (settings.getAudioRenderer() != null && context.getType() != Type.Headless){
audioRenderer = JmeSystem.newAudioRenderer(settings);
audioRenderer.initialize();
AudioContext.setAudioRenderer(audioRenderer);

Loading…
Cancel
Save