comparison src/com/aurellem/capture/AurellemSystemDelegate.java @ 49:121b6d7e4d3f

more friendly AppSettings handling
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Dec 2011 13:22:27 -0600
parents 388f9d062012
children f5e52169f056
comparison
equal deleted inserted replaced
48:6ecfef90e9eb 49:121b6d7e4d3f
5 import com.jme3.system.AppSettings; 5 import com.jme3.system.AppSettings;
6 import com.jme3.system.JmeDesktopSystem; 6 import com.jme3.system.JmeDesktopSystem;
7 7
8 public class AurellemSystemDelegate extends JmeDesktopSystem { 8 public class AurellemSystemDelegate extends JmeDesktopSystem {
9 9
10 public static final String SEND = "Send";
11
10 public AudioRenderer newAudioRenderer(AppSettings settings) { 12 public AudioRenderer newAudioRenderer(AppSettings settings) {
11 initialize(settings); 13 initialize(settings);
12 return new AudioSendRenderer(); 14 if (settings.getAudioRenderer() == SEND){
15 return new AudioSendRenderer();
16 }
17 else {
18 return super.newAudioRenderer(settings);
19 }
13 } 20 }
14 } 21 }