Code example for AudioManager

Methods: setSpeakerphoneOn

0
	public void setSound(boolean som) {
		if (!som) {
			mAudioManager.adjustStreamVolume(AudioManager.STREAM_VOICE_CALL,
					AudioManager.ADJUST_LOWER, 0);
		} else { 
			mAudioManager.setSpeakerphoneOn(true);
		} 
	} 
 
	public static SoundManager getInstance(Context ct) {
		if (instance == null) {
			instance = new SoundManager(ct);
		} 
		return instance;
	} 
 
	// Adiciona um som ao pool 
	public void addSound(int soundId) {
		mSoundPoolMap.add(mSoundPool.load(mContext, soundId, 1));
	}