Code example for AudioManager

Methods: getStreamVolumeplaySoundEffect

0
	 * @see <a href="http://developer.android.com/reference/android/media/AudioManager.html#FX_KEY_CLICK"/>Effectcodes</a> 
	 * @see <a href="http://developer.android.com/reference/android/media/AudioManager.html#playSoundEffect(int)">playSoundEffect</a> 
	 */ 
	@Override 
	public void playSoundEffect(final int effectType) {
		final float streamVolume = audiomanager.getStreamVolume(AudioManager.STREAM_MUSIC);
		audiomanager.playSoundEffect(effectType, streamVolume);
	} 
 
	/** 
	 * @see SoundManagerImpl#playSoundEffect(int) 
	 */ 
	@Override 
	public void playClick() { 
		playSoundEffect(AudioManager.FX_KEY_CLICK);
	} 
 
	/** 
	 * Stop a Sound 
	 *  
Experience pair programming with AI  Get Codota for Java