Code example for SoundPool

Methods: setLoop

0
	 
	/** 
	 * Will set the sound to stop looping after this last playout. 
	 */ 
	public void stopLooping() { 
		SOUND_POOL.setLoop(mStreamId, 0);
		mLooping = false;
	} 
	 
	/** 
	 * Stops the sound if it is currently playing. 
	 * @return 
	 */ 
	public boolean stop() { 
		SOUND_POOL.pause(mStreamId);
		mLooping = false;
		return true; 
	} 
	 
	/** 
	 * Resumes the sound from the position stop() was called on it.