Code example for ArrayList

Methods: clear

0
 
	public void end() { 
		this.mSoundPool.release();
		this.mPathStreamIDsMap.clear();
		this.mPathSoundIDMap.clear();
		this.mEffecToPlayWhenLoadedArray.clear();
 
		this.mLeftVolume = 0.5f;
		this.mRightVolume = 0.5f;
 
		this.initData();
	} 
 
	public int createSoundIDFromAsset(final String pPath) {
		int soundID = Cocos2dxSound.INVALID_SOUND_ID;
 
		try { 
			if (pPath.startsWith("/")) {
				soundID = this.mSoundPool.load(pPath, 0);
			} else { 
				soundID = this.mSoundPool.load(this.mContext.getAssets().openFd(pPath), 0);