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