Code example for SoundPool

Methods: setRate

0
	} 
 
	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())
			mPlayer.pause();
	} 
	 
	public static void globalResumeSound() 
	{ 
		if(mSoundPool != null)
Stop searching for code, let great code find you!  Add Codota to your java IDE