Mercurial > jmeCapture
changeset 46:fc71e797f4fa
correct typo in file name
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Dec 2011 12:47:05 -0600 |
parents | 5cd9e6c65a93 |
children | 74b53dfe369e |
files | src/com/aurellem/capture/examples/HelloAudioRecording.java src/com/aurellem/capture/examples/HeloAudioRecording.java |
diffstat | 2 files changed, 23 insertions(+), 24 deletions(-) [+] |
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 +}
2.1 --- a/src/com/aurellem/capture/examples/HeloAudioRecording.java Sat Dec 03 12:44:23 2011 -0600 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,24 +0,0 @@ 2.4 -package com.aurellem.capture.examples; 2.5 - 2.6 -import java.io.File; 2.7 -import java.io.IOException; 2.8 - 2.9 -import jme3test.helloworld.HelloAudio; 2.10 - 2.11 -import com.aurellem.capture.Capture; 2.12 -import com.aurellem.capture.IsoTimer; 2.13 -import com.jme3.app.Application; 2.14 - 2.15 -public class HeloAudioRecording { 2.16 - 2.17 - public static void main(String[] ignore) throws IOException{ 2.18 - Application app = new HelloAudio(); 2.19 - File audio = File.createTempFile("JME-simple-audio", ".wav"); 2.20 - app.setTimer(new IsoTimer(60)); 2.21 - Capture.captureAudio(app, audio); 2.22 - app.start(); 2.23 - System.out.println(audio.getCanonicalPath()); 2.24 - 2.25 - } 2.26 - 2.27 -}