0

このコードを使用して、スピーカーの最大音量を設定します。

AudioManager audioManager.setMode(AudioManager.MODE_IN_CALL); 
audioManager.setStreamVolume(AudioManager.STREAM_MUSIC,audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC),0);
            audioManager.setSpeakerphoneOn(false);

このボリュームをもっと増やしたいのですが、どうすればいいですか?私はこれを使用しようとしました:

audioManager.setStreamVolume(AudioManager.STREAM_MUSIC,2,0);

しかし、音量は同じレベルに設定されたままです。

このようなアプリ:https://play.google.com/store/apps/details?id=com.mxtech.videoplayer.adたとえば、音量を 300% に上げることができます。

何か助けはありますか?ありがとうございました。

4

1 に答える 1