|
@@ -27,7 +27,7 @@ public class MusicServiceImpl implements MusicService {
|
|
public Integer start(String path, Integer vol) {
|
|
public Integer start(String path, Integer vol) {
|
|
synchronized (this) {
|
|
synchronized (this) {
|
|
try {
|
|
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 10000";
|
|
log.info("start music cmd:{}", cmd);
|
|
log.info("start music cmd:{}", cmd);
|
|
if (p != null) {
|
|
if (p != null) {
|
|
p.destroyForcibly();
|
|
p.destroyForcibly();
|