diff 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
line wrap: on
line diff
     1.1 --- a/src/com/aurellem/capture/AurellemSystemDelegate.java	Sat Dec 03 12:53:31 2011 -0600
     1.2 +++ b/src/com/aurellem/capture/AurellemSystemDelegate.java	Sat Dec 03 13:22:27 2011 -0600
     1.3 @@ -7,8 +7,15 @@
     1.4  
     1.5  public class AurellemSystemDelegate extends JmeDesktopSystem {
     1.6  	
     1.7 +	public static final String SEND = "Send";
     1.8 +	
     1.9  	public AudioRenderer newAudioRenderer(AppSettings settings) {
    1.10          initialize(settings);
    1.11 -        return new AudioSendRenderer();
    1.12 +        if (settings.getAudioRenderer() == SEND){
    1.13 +        	return new AudioSendRenderer();
    1.14 +        }
    1.15 +        else {
    1.16 +        	return super.newAudioRenderer(settings);        	
    1.17 +        }        
    1.18      }	
    1.19  }
    1.20 \ No newline at end of file