Mercurial > jmeCapture
diff src/com/aurellem/capture/examples/HelloAudioRecording.java @ 56:afc437f637bd
improved formating
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Dec 2011 19:25:27 -0600 |
parents | 8a091a5f48fa |
children |
line wrap: on
line diff
1.1 --- a/src/com/aurellem/capture/examples/HelloAudioRecording.java Sat Dec 03 19:18:38 2011 -0600 1.2 +++ b/src/com/aurellem/capture/examples/HelloAudioRecording.java Sat Dec 03 19:25:27 2011 -0600 1.3 @@ -9,12 +9,12 @@ 1.4 import com.aurellem.capture.IsoTimer; 1.5 import com.jme3.app.Application; 1.6 1.7 -/** Recording audio from your Application is simple. If all you 1.8 - * want to do is record Audio, then follow the following steps. 1.9 +/** Recording audio from your Application is simple. If all you want 1.10 + * to do is record Audio, then follow the following steps. 1.11 * 1.12 * 1.) Set the Application's timer to an IsoTimer. The framerate is 1.13 - * irrelevant for sound, but must evenly divide 44,100Hz, which is the 1.14 - * frequency at which sound will be recorded. For example 1.15 + * irrelevant for sound, but must evenly divide 44,100Hz, which is 1.16 + * the frequency at which sound will be recorded. For example 1.17 * IsoTimer(60) is ok, but IsoTimer(61) is not. 1.18 * 1.19 * 2.) Call Capture.captureAudio(yourApplication, target-file) before 1.20 @@ -27,12 +27,12 @@ 1.21 */ 1.22 public class HelloAudioRecording { 1.23 1.24 - public static void main(String[] ignore) throws IOException{ 1.25 - Application app = new HelloAudio(); 1.26 - File audio = File.createTempFile("JME-simple-audio", ".wav"); 1.27 - app.setTimer(new IsoTimer(60)); 1.28 - Capture.captureAudio(app, audio); 1.29 - app.start(); 1.30 - System.out.println(audio.getCanonicalPath()); 1.31 - } 1.32 + public static void main(String[] ignore) throws IOException{ 1.33 + Application app = new HelloAudio(); 1.34 + File audio = File.createTempFile("JME-simple-audio", ".wav"); 1.35 + app.setTimer(new IsoTimer(60)); 1.36 + Capture.captureAudio(app, audio); 1.37 + app.start(); 1.38 + System.out.println(audio.getCanonicalPath()); 1.39 + } 1.40 }