Code example for SoundPool

Methods: stop

0
	 * Stop a Sound 
	 * @param index - index of the sound to be stopped 
	 */ 
	public static void stopSound(int index)
	{ 
		mSoundPool.stop(mSoundPoolMap.get(index));
	} 
  
	/** 
	 * Deallocates the resources and Instance of SoundManager 
	 */ 
	public static void cleanup() 
	{ 
		if (mSoundPool != null) mSoundPool.release();
		mSoundPool = null;
		if (mSoundPoolMap != null) mSoundPoolMap.clear();
		if (mAudioManager != null) mAudioManager.unloadSoundEffects();
	    _instance = null;
  
	}