Hi, how do I change the volume of a sound file that plays? I've tried lowering the sound in audacity but that does nothing when playing the file through greenfoot. I did searches and it seems that I have to use "public int getVolume()" but I have no idea how to implement this...
Any help would be greatly appreciated :)
Here's my code, as you can see it plays the gun shot sound every time the player fires a bullet.
          if (shotTimer >0) {
            shotTimer = shotTimer -1;}
        else if (Greenfoot.isKeyDown("space") )
        {
            getWorld().addObject(new Bullet1(getRotation()), getX(), getY());
            shotTimer = 10;
            Greenfoot.playSound("Gun_Shoot2.wav");
        }  
          
         
   


