Mercurial > jmeCapture
diff src/com/aurellem/capture/examples/HeloAudioRecording.java @ 45:5cd9e6c65a93
system is shaping up
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Dec 2011 12:44:23 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/com/aurellem/capture/examples/HeloAudioRecording.java Sat Dec 03 12:44:23 2011 -0600 1.3 @@ -0,0 +1,24 @@ 1.4 +package com.aurellem.capture.examples; 1.5 + 1.6 +import java.io.File; 1.7 +import java.io.IOException; 1.8 + 1.9 +import jme3test.helloworld.HelloAudio; 1.10 + 1.11 +import com.aurellem.capture.Capture; 1.12 +import com.aurellem.capture.IsoTimer; 1.13 +import com.jme3.app.Application; 1.14 + 1.15 +public class HeloAudioRecording { 1.16 + 1.17 + public static void main(String[] ignore) throws IOException{ 1.18 + Application app = new HelloAudio(); 1.19 + File audio = File.createTempFile("JME-simple-audio", ".wav"); 1.20 + app.setTimer(new IsoTimer(60)); 1.21 + Capture.captureAudio(app, audio); 1.22 + app.start(); 1.23 + System.out.println(audio.getCanonicalPath()); 1.24 + 1.25 + } 1.26 + 1.27 +}