Code example for SparseIntArray

Methods: get, put

0
	 * Add a new Sound to the SoundPool 
	 *  
	 * @param SoundID - The Android ID for the Sound asset. 
	 */ 
	public static void addSound(int soundID) {
		if (mSoundPoolMap.get(soundID) == 0) {
			int i = mSoundPool.load(mContext, soundID, 1);
			mSoundPoolMap.put(soundID, i);
		} 
	} 
 
	/** 
	 * Plays a Sound 
	 *  
	 * @param index - The Index of the Sound to be played 
	 * @param speed - The Speed to play not, not currently used but included for 
	 *        compatibility 
	 */ 
	public static void playSound(int index, int loop) {
		playSound(index, 1, loop, 1.0f);
	}