Code example for SoundPool

Methods: stop

0
	} 
	 
	static public void stopSound(int inStreamID)
	{ 
		if (mSoundPool != null) {
			mSoundPool.stop(inStreamID);
			mSoundProgress.remove(inStreamID);
			mSoundId.values().remove(inStreamID);
		} 
	} 
 
	static public void checkSoundCompletion()  
	{ 
		long delta = (System.currentTimeMillis() - mTimeStamp);
		for (Map.Entry<Integer, Long> entry : mSoundProgress.entrySet()) {
			long val = entry.getValue();
			entry.setValue(val + (long)delta);
		} 
 
		mTimeStamp = System.currentTimeMillis();
	}