Code example for SoundPool

Methods: pause

0
	public static void stopSound(int index) {
		mSoundPool.stop(mSoundPoolMap.get(index));
	} 
 
	public static void pauseSound(int index) {
		mSoundPool.pause(mSoundPoolMap.get(index));
	} 
 
	public static void resumeSound(int index) {
		mSoundPool.resume(mSoundPoolMap.get(index));
	} 
 
	public static int getSampleId(int sourceID) {
		return mSoundPoolMap.get(sourceID);
	} 
 
	public static void cleanup() { 
		mSoundPool.release();
		mSoundPool = null;
		mSoundPoolMap.clear();
		mAudioManager.unloadSoundEffects();