音量默认调整为最大
This commit is contained in:
@@ -20,6 +20,7 @@ public enum PlayMusicService {
|
|||||||
if (hello.exists()){
|
if (hello.exists()){
|
||||||
helloVoice.addAudioFile(hello);
|
helloVoice.addAudioFile(hello);
|
||||||
player.setPlayList(helloVoice);
|
player.setPlayList(helloVoice);
|
||||||
|
player.setGain(1f);
|
||||||
player.play();
|
player.play();
|
||||||
player.close();
|
player.close();
|
||||||
}
|
}
|
||||||
@@ -30,6 +31,7 @@ public enum PlayMusicService {
|
|||||||
if (bye.exists()){
|
if (bye.exists()){
|
||||||
byeVoice.addAudioFile(bye);
|
byeVoice.addAudioFile(bye);
|
||||||
player.setPlayList(byeVoice);
|
player.setPlayList(byeVoice);
|
||||||
|
player.setGain(1f);
|
||||||
player.play();
|
player.play();
|
||||||
player.close();
|
player.close();
|
||||||
}
|
}
|
||||||
@@ -40,6 +42,7 @@ public enum PlayMusicService {
|
|||||||
if (bye.exists()){
|
if (bye.exists()){
|
||||||
byeVoice.addAudioFile(bye);
|
byeVoice.addAudioFile(bye);
|
||||||
player.setPlayList(byeVoice);
|
player.setPlayList(byeVoice);
|
||||||
|
player.setGain(1f);
|
||||||
player.play();
|
player.play();
|
||||||
player.close();
|
player.close();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user