Mercurial > jmeCapture
diff src/com/aurellem/capture/Capture.java @ 44:388f9d062012
adapting to execellent new jmeSystem changes
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Dec 2011 12:18:55 -0600 |
parents | 784a3f4e6202 |
children | 121b6d7e4d3f |
line wrap: on
line diff
1.1 --- a/src/com/aurellem/capture/Capture.java Wed Nov 30 06:32:36 2011 -0700 1.2 +++ b/src/com/aurellem/capture/Capture.java Sat Dec 03 12:18:55 2011 -0600 1.3 @@ -14,7 +14,7 @@ 1.4 import com.jme3.audio.AudioRenderer; 1.5 import com.jme3.renderer.ViewPort; 1.6 import com.jme3.scene.Spatial; 1.7 -import com.jme3.system.AppSettings; 1.8 +import com.jme3.system.JmeSystem; 1.9 1.10 public class Capture { 1.11 1.12 @@ -56,9 +56,9 @@ 1.13 1.14 1.15 public static void captureAudio(final Application app, final File file) throws IOException{ 1.16 - AppSettings settings = new AppSettings(true); 1.17 - settings.setAudioRenderer("Send"); 1.18 - app.setSettings(settings); 1.19 + 1.20 + JmeSystem.setSystemDelegate(new AurellemSystemDelegate()); 1.21 + 1.22 final WaveFileWriter writer = new WaveFileWriter(file); 1.23 1.24 Callable<Object> thunk = new Callable<Object>(){