Mercurial > jmeCapture
diff src/com/aurellem/capture/examples/AdvancedAudio.java @ 38:adeb88787645
fixed all problems for 16 bit mono output
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 31 Oct 2011 07:43:44 -0700 |
parents | 094a92b556a2 |
children | 784a3f4e6202 |
line wrap: on
line diff
1.1 --- a/src/com/aurellem/capture/examples/AdvancedAudio.java Mon Oct 31 02:35:35 2011 -0700 1.2 +++ b/src/com/aurellem/capture/examples/AdvancedAudio.java Mon Oct 31 07:43:44 2011 -0700 1.3 @@ -208,16 +208,16 @@ 1.4 music = new AudioNode(assetManager, "Sound/Environment/sqr-1kHz.wav", false); 1.5 1.6 rootNode.attachChild(music); 1.7 - //audioRenderer.playSource(music); 1.8 - //music.setPositional(true); 1.9 - //music.setVolume(1f); 1.10 - //music.setReverbEnabled(false); 1.11 - //music.setDirectional(false); 1.12 - //music.setMaxDistance(200.0f); 1.13 - //music.setRefDistance(1f); 1.14 - //music.setRolloffFactor(1f); 1.15 - //music.setLooping(false); 1.16 - //audioRenderer.pauseSource(music); 1.17 + audioRenderer.playSource(music); 1.18 + music.setPositional(true); 1.19 + music.setVolume(1f); 1.20 + music.setReverbEnabled(false); 1.21 + music.setDirectional(false); 1.22 + music.setMaxDistance(200.0f); 1.23 + music.setRefDistance(1f); 1.24 + music.setRolloffFactor(1f); 1.25 + music.setLooping(false); 1.26 + audioRenderer.pauseSource(music); 1.27 1.28 } 1.29 1.30 @@ -358,7 +358,7 @@ 1.31 1.32 System.out.println(countdown); 1.33 1.34 - if (countdown++ == 700) { this.requestClose(false);} 1.35 + if (countdown++ == 300) { this.requestClose(false);} 1.36 1.37 //System.out.println("channel "+ music.getChannel()); 1.38 //listener.setLocation(cam.getLocation());