Mercurial > jmeCapture
annotate src/com/aurellem/capture/AurellemSystemDelegate.java @ 62:f5e52169f056
updated to work with new jme changes
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 14 Dec 2011 17:43:52 -0700 |
parents | 121b6d7e4d3f |
children | 155c70b7e6de |
rev | line source |
---|---|
rlm@44 | 1 package com.aurellem.capture; |
rlm@44 | 2 |
rlm@44 | 3 import com.aurellem.capture.audio.AudioSendRenderer; |
rlm@44 | 4 import com.jme3.audio.AudioRenderer; |
rlm@44 | 5 import com.jme3.system.AppSettings; |
rlm@44 | 6 import com.jme3.system.JmeDesktopSystem; |
rlm@44 | 7 |
rlm@44 | 8 public class AurellemSystemDelegate extends JmeDesktopSystem { |
rlm@44 | 9 |
rlm@49 | 10 public static final String SEND = "Send"; |
rlm@49 | 11 |
rlm@44 | 12 public AudioRenderer newAudioRenderer(AppSettings settings) { |
rlm@44 | 13 initialize(settings); |
rlm@62 | 14 if (settings.getAudioRenderer().equals(SEND)){ |
rlm@62 | 15 System.out.println("fuck me"); |
rlm@49 | 16 return new AudioSendRenderer(); |
rlm@49 | 17 } |
rlm@49 | 18 else { |
rlm@62 | 19 System.out.println("fuck you , I'm eating\n"); |
rlm@62 | 20 return super.newAudioRenderer(settings); |
rlm@62 | 21 } |
rlm@62 | 22 |
rlm@62 | 23 } |
rlm@44 | 24 } |