diff src/com/aurellem/capture/examples/AdvancedAudio.java @ 36:2a525e937d86

still debuging.
author Robert McIntyre <rlm@mit.edu>
date Mon, 31 Oct 2011 01:21:30 -0700
parents c969b04fa0dc
children 094a92b556a2
line wrap: on
line diff
     1.1 --- a/src/com/aurellem/capture/examples/AdvancedAudio.java	Mon Oct 31 00:14:46 2011 -0700
     1.2 +++ b/src/com/aurellem/capture/examples/AdvancedAudio.java	Mon Oct 31 01:21:30 2011 -0700
     1.3 @@ -207,16 +207,14 @@
     1.4  	music = new AudioNode(assetManager, "Sound/Environment/pure.wav", false);
     1.5  	
     1.6      rootNode.attachChild(music);
     1.7 -    //audioRenderer.playSource(music);
     1.8 -    music.setPositional(true);
     1.9 +    audioRenderer.playSource(music);
    1.10 +    music.setPositional(false);
    1.11      music.setVolume(1f);
    1.12      music.setReverbEnabled(false);
    1.13      music.setMaxDistance(200.0f);
    1.14      music.setRefDistance(1f);
    1.15      music.setRolloffFactor(5f);
    1.16 -    
    1.17 -    
    1.18 -    //audioRenderer.pauseSource(music); 
    1.19 +    audioRenderer.pauseSource(music); 
    1.20      
    1.21    }
    1.22  
    1.23 @@ -350,7 +348,7 @@
    1.24      //listener.setLocation(loc);
    1.25      //listener.setRotation(rot);
    1.26      System.out.println(countdown);
    1.27 -    if (countdown++ == 14) { this.requestClose(false);}
    1.28 +    if (countdown++ == 400) { this.requestClose(false);}
    1.29      
    1.30      System.out.println("channel "+ music.getChannel());
    1.31      //listener.setLocation(cam.getLocation());