瀏覽代碼

Removed the large file

TC pushbot 5 4 年之前
父節點
當前提交
0291d8fc86
共有 3 個文件被更改,包括 6 次插入0 次删除
  1. 2 0
      .gitignore
  2. 4 0
      main.go
  3. 二進制
      tmp/1620547381.wav

+ 2 - 0
.gitignore

@@ -24,3 +24,5 @@ _testmain.go
 *.test
 *.prof
 
+tmp/*
+

+ 4 - 0
main.go

@@ -18,6 +18,7 @@ import (
 	"syscall"
 	"time"
 
+	"github.com/faiface/beep/speaker"
 	"imuslab.com/hds/audio/mod/mdns"
 )
 
@@ -33,6 +34,9 @@ func SetupCloseHandler() {
 	signal.Notify(c, os.Interrupt, syscall.SIGTERM)
 	go func() {
 		<-c
+		//Stop the speaker
+		speaker.Clear()
+		speaker.Close()
 		//Clear up the tmp folder
 		os.RemoveAll("./tmp")
 

二進制
tmp/1620547381.wav