annotate src/com/aurellem/capture/examples/HelloAudioRecording.java @ 49:121b6d7e4d3f

more friendly AppSettings handling
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Dec 2011 13:22:27 -0600
parents fc71e797f4fa
children 8a091a5f48fa
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@46 12 public class HelloAudioRecording {
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@46 20 System.out.println(audio.getCanonicalPath());
rlm@45 21 }
rlm@45 22
rlm@45 23 }