Code example for SoundPool

Methods: autoPause

0
	public void resumeEffect(final int pStreamID) {
		this.mSoundPool.resume(pStreamID);
	} 
 
	public void pauseAllEffects() { 
		this.mSoundPool.autoPause();
	} 
 
	public void resumeAllEffects() { 
		// can not only invoke SoundPool.autoResume() here, because 
		// it only resumes all effects paused by pauseAllEffects() 
		if (!this.mPathStreamIDsMap.isEmpty()) {
			final Iterator<Entry<String, ArrayList<Integer>>> iter = this.mPathStreamIDsMap.entrySet().iterator();
			while (iter.hasNext()) {
				final Entry<String, ArrayList<Integer>> entry = iter.next();
				for (final int pStreamID : entry.getValue()) {
					this.mSoundPool.resume(pStreamID);
				} 
			} 
		} 
	}