Code example for SoundPool

Methods: autoResume

0
	} 
 
	public void doResume() 
	{ 
		mTimeStamp = System.currentTimeMillis();
		mSoundPool.autoResume();
 
		if (mediaPlayer != null && mediaPlayerWasPlaying) {
			mediaPlayer.start ();
		}	 
	} 
	 
	/* 
	 * Sound effects using SoundPool 
	 * 
	 * This allows for low latency and CPU load but sounds must be 100kB or smaller 
	 */ 
 
	public static int getSoundHandle(String inFilename)
	{ 
		int id = GameActivity.getResourceID(inFilename);