Mercurial > jmeCapture
annotate 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 |
rev | line source |
---|---|
rlm@45 | 1 package com.aurellem.capture.examples; |
rlm@45 | 2 |
rlm@45 | 3 import java.io.File; |
rlm@45 | 4 import java.io.IOException; |
rlm@45 | 5 |
rlm@45 | 6 import jme3test.helloworld.HelloAudio; |
rlm@45 | 7 |
rlm@45 | 8 import com.aurellem.capture.Capture; |
rlm@45 | 9 import com.aurellem.capture.IsoTimer; |
rlm@45 | 10 import com.jme3.app.Application; |
rlm@45 | 11 |
rlm@45 | 12 public class HeloAudioRecording { |
rlm@45 | 13 |
rlm@45 | 14 public static void main(String[] ignore) throws IOException{ |
rlm@45 | 15 Application app = new HelloAudio(); |
rlm@45 | 16 File audio = File.createTempFile("JME-simple-audio", ".wav"); |
rlm@45 | 17 app.setTimer(new IsoTimer(60)); |
rlm@45 | 18 Capture.captureAudio(app, audio); |
rlm@45 | 19 app.start(); |
rlm@45 | 20 System.out.println(audio.getCanonicalPath()); |
rlm@45 | 21 |
rlm@45 | 22 } |
rlm@45 | 23 |
rlm@45 | 24 } |