From 73f073c79410f0be5a7510673d4032a2d76e263a Mon Sep 17 00:00:00 2001 From: "sha..rd" Date: Wed, 28 Sep 2011 01:34:13 +0000 Subject: [PATCH] * Headless context will no longer initialize audio renderer git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8315 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/app/Application.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/app/Application.java b/engine/src/core/com/jme3/app/Application.java index 1a9fbe8a9..8f7d3563d 100644 --- a/engine/src/core/com/jme3/app/Application.java +++ b/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);