diff src/com/aurellem/capture/hello/HelloAudio.java @ 9:5dfc9e768816

moved files
author Robert McIntyre <rlm@mit.edu>
date Wed, 26 Oct 2011 08:54:12 -0700
parents dde12be02029
children 8a6b1684f536
line wrap: on
line diff
     1.1 --- a/src/com/aurellem/capture/hello/HelloAudio.java	Tue Oct 25 12:29:40 2011 -0700
     1.2 +++ b/src/com/aurellem/capture/hello/HelloAudio.java	Wed Oct 26 08:54:12 2011 -0700
     1.3 @@ -1,12 +1,10 @@
     1.4  package com.aurellem.capture.hello;
     1.5  
     1.6  import java.io.File;
     1.7 -import java.util.logging.Level;
     1.8 -import java.util.logging.Logger;
     1.9  
    1.10  import com.aurellem.capture.IsoTimer;
    1.11 -import com.aurellem.capture.MultiListener;
    1.12 -import com.aurellem.capture.WaveFileWriter;
    1.13 +import com.aurellem.capture.audio.MultiListener;
    1.14 +import com.aurellem.capture.audio.WaveFileWriter;
    1.15  import com.jme3.app.SimpleApplication;
    1.16  import com.jme3.audio.AudioNode;
    1.17  import com.jme3.audio.Listener;
    1.18 @@ -30,10 +28,7 @@
    1.19    public File data1 = new File("/home/r/tmp/data1.wav");
    1.20    public File data2 = new File("/home/r/tmp/data2.wav");
    1.21    public File data3 = new File("/home/r/tmp/data3.wav");
    1.22 -  
    1.23 - 
    1.24 -  
    1.25 -  
    1.26 +   
    1.27    private File makeTarget(int n){
    1.28  	  	return new File("/home/r/tmp/assload-" + n + ".wav");
    1.29    }
    1.30 @@ -45,6 +40,7 @@
    1.31  	  
    1.32  	HelloAudio app = new HelloAudio();
    1.33  	AppSettings settings = new AppSettings(true);
    1.34 +	
    1.35  	settings.setAudioRenderer("Send");
    1.36  	app.setSettings(settings);
    1.37  	app.setShowSettings(false);
    1.38 @@ -139,6 +135,12 @@
    1.39      listener.setRotation(rot);
    1.40      auxListener.setLocation(loc);
    1.41      auxListener.setRotation(rot);
    1.42 +    if (audio_gun.getStatus() == AudioNode.Status.Stopped){
    1.43 +    	System.out.println("I'm Stopped!");
    1.44 +    	this.requestClose(false);
    1.45 +    }
    1.46 +    	
    1.47 +    	
    1.48    }
    1.49  
    1.50  }