문제

I am trying to play SoundManager using the following, but it still seams to be using the media volume instead of the ringtone volume. Why?

float streamVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_RING);
streamVolume = streamVolume / mAudioManager.getStreamMaxVolume(AudioManager.STREAM_RING);
mSoundPool.play((Integer) mSoundPoolMap.get(index), streamVolume,streamVolume, 1, 0, speed);
도움이 되었습니까?

해결책

As per Michael, I have to change this in "initSounds" in my SoundManager also. Thanks Michael.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top