瀏覽代碼

重复10次23

TitanWong 1 年之前
父節點
當前提交
20f4a72c48
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/zhili/stationcontrol/tts/service/impl/MusicServiceImpl.java

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

@@ -27,7 +27,7 @@ public class MusicServiceImpl implements MusicService {
     public Integer start(String path, Integer vol) {
         synchronized (this) {
             try {
-                String cmd = "play -v " + Float.valueOf(new Integer(vol).toString()) / 100 + " " + path + " repeat 10";
+                String cmd = "play -v " + Float.valueOf(new Integer(vol).toString()) / 100 + " " + path + " repeat 1";
                 log.info("start music cmd:{}", cmd);
                 if (p != null) {
                     p.destroyForcibly();