comparison src/com/aurellem/capture/examples/Basic.java @ 24:5f616cc420dd

improved WaveFileWriter using tritonus
author Robert McIntyre <rlm@mit.edu>
date Sun, 30 Oct 2011 04:42:40 -0700
parents c7a07eefaeea
children 7184bc09a92e 3dc1f15e1e13
comparison
equal deleted inserted replaced
23:b643413c3aba 24:5f616cc420dd
24 24
25 public static void main(String[] ignore) throws IOException{ 25 public static void main(String[] ignore) throws IOException{
26 File video = File.createTempFile("JME-water-video", ".avi"); 26 File video = File.createTempFile("JME-water-video", ".avi");
27 File audio = File.createTempFile("JME-water-audio", ".wav"); 27 File audio = File.createTempFile("JME-water-audio", ".wav");
28 28
29 System.out.println(video.getCanonicalPath());
30 System.out.println(audio.getCanonicalPath());
31
32 SimpleApplication app = new TestPostWater(); 29 SimpleApplication app = new TestPostWater();
33 app.setTimer(new IsoTimer(60)); 30 app.setTimer(new IsoTimer(60));
34 app.setShowSettings(false); 31 app.setShowSettings(false);
35 32
36 Capture.captureVideo(app, video); 33 Capture.captureVideo(app, video);
37 Capture.captureAudio(app, audio); 34 Capture.captureAudio(app, audio);
38 35
39 app.start(); 36 app.start();
37
38 System.out.println(video.getCanonicalPath());
39 System.out.println(audio.getCanonicalPath());
40 } 40 }
41 } 41 }