diff src/com/aurellem/capture/examples/Advanced.java @ 45:5cd9e6c65a93

system is shaping up
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Dec 2011 12:44:23 -0600
parents 388f9d062012
children 6ecfef90e9eb
line wrap: on
line diff
     1.1 --- a/src/com/aurellem/capture/examples/Advanced.java	Sat Dec 03 12:18:55 2011 -0600
     1.2 +++ b/src/com/aurellem/capture/examples/Advanced.java	Sat Dec 03 12:44:23 2011 -0600
     1.3 @@ -5,13 +5,12 @@
     1.4  import java.io.IOException;
     1.5  import java.lang.reflect.Field;
     1.6  import java.nio.ByteBuffer;
     1.7 -import java.util.logging.Level;
     1.8 -import java.util.logging.Logger;
     1.9  
    1.10  import javax.sound.sampled.AudioFormat;
    1.11  
    1.12  import org.tritonus.share.sampled.FloatSampleTools;
    1.13  
    1.14 +import com.aurellem.capture.AurellemSystemDelegate;
    1.15  import com.aurellem.capture.Capture;
    1.16  import com.aurellem.capture.IsoTimer;
    1.17  import com.aurellem.capture.audio.CompositeSoundProcessor;
    1.18 @@ -34,7 +33,7 @@
    1.19  import com.jme3.scene.shape.Box;
    1.20  import com.jme3.scene.shape.Sphere;
    1.21  import com.jme3.system.AppSettings;
    1.22 -import com.jme3.system.Natives;
    1.23 +import com.jme3.system.JmeSystem;
    1.24  
    1.25  
    1.26  /**
    1.27 @@ -90,6 +89,7 @@
    1.28  		Advanced app = new Advanced();
    1.29  		AppSettings settings = new AppSettings(true);
    1.30  		settings.setAudioRenderer("Send");
    1.31 +		JmeSystem.setSystemDelegate(new AurellemSystemDelegate());
    1.32  		app.setSettings(settings);
    1.33  		app.setShowSettings(false);
    1.34  		app.setPauseOnLostFocus(false);
    1.35 @@ -220,11 +220,6 @@
    1.36  		audioRenderer.pauseSource(music); 
    1.37  	}
    1.38  
    1.39 -
    1.40 -
    1.41 -
    1.42 -	
    1.43 -
    1.44  	public class Dancer implements SoundProcessor {
    1.45  		Geometry entity;
    1.46  		float scale = 2;
    1.47 @@ -274,7 +269,6 @@
    1.48  
    1.49  			rf.registerSoundProcessor(auxListener, 
    1.50  					new CompositeSoundProcessor(new Dancer(ear), aux));
    1.51 -
    1.52  		}   
    1.53  	}
    1.54