Mercurial > jmeCapture
diff src/com/aurellem/capture/examples/HelloAudioRecording.java @ 46:fc71e797f4fa
correct typo in file name
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Dec 2011 12:47:05 -0600 |
parents | src/com/aurellem/capture/examples/HeloAudioRecording.java@5cd9e6c65a93 |
children | 8a091a5f48fa |
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/HelloAudioRecording.java Sat Dec 03 12:47:05 2011 -0600 1.3 @@ -0,0 +1,23 @@ 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 HelloAudioRecording { 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 +}