Browse Source

Removed the large file

TC pushbot 5 4 years ago
parent
commit
0291d8fc86
3 changed files with 6 additions and 0 deletions
  1. 2 0
      .gitignore
  2. 4 0
      main.go
  3. BIN
      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")
 

BIN
tmp/1620547381.wav