public void setVolume(float v) {
        if(v > 100.0f) {
            v = 100.0f;
        }
        if(v < 0.0f) {
            v = 0.0f;
        }
        float max = getMaxGain();
        float min = getMinGain();
        if(!(max < -500.0f || min < -500.0f)) {
            float diff = max - min;
            float gain = diff*(v/100.0f)+min;
            for(int i = 0; i < playList.size(); i++) {
                GameSong gs = playList.get(i);
                if(gs != null) {
                    gs.stopFadeIn();
                    gs.setVolume(gain);
                    gs.setMaxGain(gain);
                }
            }
        }
        volume = v;
    }