public void fade(float dt){
//		System.out.println(title+": "+volume);
		float volume = getVolume();
		volume += dt * fadeType * speed;
		if (volume >= goalVolume && fadeType==FADE_IN){
			volume = goalVolume;
			fading = false;
			fadeType=0;
		} if (volume <= goalVolume && fadeType==FADE_OUT){
			volume = goalVolume;
			
			if(toStop)
				dispose();
			else if(goalVolume==0f)
				pause();
			
			fading = toStop = false;
			fadeType=0;
		}
		
		setVolume(volume);
	}