Code example for SoundPool

Methods: stop

0
	} 
 
	public static void stopSound(int index)
	{ 
		//mSoundPool.stop(mSoundPoolMap.get(index)); 
		mSoundPool.stop(mIndexToStream[index]);
	} 
 
	public static void changeRate(int index, float rate)
	{ 
		//mSoundPool.setRate(mSoundPoolMap.get(index), rate); 
		mSoundPool.setRate(mIndexToStream[index], rate);
	} 
	 
	public static void globalPauseSound() 
	{ 
		if(mSoundPool != null)
			mSoundPool.autoPause();
		 
		if(mPlayer != null && mPlayer.isPlaying())
Stop searching for code, let great code find you!  Add Codota to your java IDE