音量默认调整为最大

This commit is contained in:
2024-03-08 21:43:01 +08:00
parent 3101502074
commit d972610331

View File

@@ -20,6 +20,7 @@ public enum PlayMusicService {
if (hello.exists()){
helloVoice.addAudioFile(hello);
player.setPlayList(helloVoice);
player.setGain(1f);
player.play();
player.close();
}
@@ -30,6 +31,7 @@ public enum PlayMusicService {
if (bye.exists()){
byeVoice.addAudioFile(bye);
player.setPlayList(byeVoice);
player.setGain(1f);
player.play();
player.close();
}
@@ -40,6 +42,7 @@ public enum PlayMusicService {
if (bye.exists()){
byeVoice.addAudioFile(bye);
player.setPlayList(byeVoice);
player.setGain(1f);
player.play();
player.close();
}