TitanWong преди 1 година
родител
ревизия
3e0e25e810
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/main/java/com/zhili/stationcontrol/tts/service/impl/MusicServiceImpl.java

+ 3 - 3
src/main/java/com/zhili/stationcontrol/tts/service/impl/MusicServiceImpl.java

@@ -25,11 +25,11 @@ public class MusicServiceImpl implements MusicService {
     Process p;
     String cmd;
     //1:开始命令到达,0:无开始命令
-    Boolean startCmd;
+    Boolean startCmd=false;
     //1:结束命令到达,0:无结束命令
-    Boolean endCmd;
+    Boolean endCmd=false;
     //1:重复播放,0:不重复
-    Boolean repeat;
+    Boolean repeat=false;
 
     @Override
     public Integer start(String path, Integer vol) {