comparison src/com/aurellem/capture/examples/Basic.java @ 28:7184bc09a92e

need to solve audio recording clicks
author Robert McIntyre <rlm@mit.edu>
date Sun, 30 Oct 2011 10:00:29 -0700
parents 5f616cc420dd
children
comparison
equal deleted inserted replaced
27:5249c8a9603c 28:7184bc09a92e
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
29 SimpleApplication app = new TestPostWater(); 30 SimpleApplication app = new TestPostWater();
30 app.setTimer(new IsoTimer(60)); 31 app.setTimer(new IsoTimer(60));
31 app.setShowSettings(false); 32 app.setShowSettings(false);
32 33
33 Capture.captureVideo(app, video); 34 Capture.captureVideo(app, video);
34 Capture.captureAudio(app, audio); 35 Capture.captureAudio(app, audio);
35 36
36 app.start(); 37 app.start();
37 38
38 System.out.println(video.getCanonicalPath()); 39 System.out.println(video.getCanonicalPath());
39 System.out.println(audio.getCanonicalPath()); 40 System.out.println(audio.getCanonicalPath());
40 } 41 }
41 } 42 }