Code example for SoundPool

Methods: resumesetVolume

0
		if (sound != null)
		{ 
			if (sound.streamId > -1)
			{ 
				Log.d("SoundSystem","Setting R,L volume to " + Float.valueOf(this.leftVolume).toString() + " , " + Float.valueOf(this.rightVolume).toString());
				mSoundPool.setVolume(sound.streamId, leftVolume, rightVolume);
				//resume a paused sound 
				mSoundPool.resume(sound.streamId);
			} 
		} 
	} 
	 
	public void stop(int resourceID)
	{ 
		Sound sound = soundIds.get(Integer.valueOf(resourceID));
		if (sound != null)
		{ 
			if (sound.streamId > -1)
			{ 
				Log.d("SoundSystem", "Stoping sound " + Integer.valueOf(resourceID).toString());
				mSoundPool.stop(sound.streamId);