Code example for SoundPool

Methods: setVolume

	 * Set the volume of a sound 
	public void volume(String sound, float volume) {
		mSoundPool.setVolume(mSounds.get(sound), volume, volume);
	 * Play a sound, once or loop. 
	public void play(String sound, boolean loop) {
		float volume;
		volume  = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);
		volume /= mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
Connect your IDE to all the code out there  Get Codota for Java