Code example for SoundPool

Methods: pause

0
	public void play(String soundname, float rate){
		soundpool.play(nameToId.get(soundname), volume, volume, 1, 0, rate);
	} 
	 
	public void stopSounds(){ 
		soundpool.pause(1);
	} 
	 
	public void release() { 
		soundpool.release();
		soundpool = null;
	} 
	 
	public void setVolumeOf(float v){
		volume = v;
		 
	} 
	 
	public float getVolume(){ 
		return volume;
	}