音量默认调整为最大
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user