mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-04-05 06:25:18 +00:00
Add delayed deinit
This commit is contained in:
parent
f79d23f755
commit
e9d71de2c4
3 changed files with 59 additions and 63 deletions
|
|
@ -173,6 +173,8 @@ func (a *audioStruct) init(devName string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
log.Print("opened device " + a.source.Name)
|
||||
|
||||
a.playBuf = bytes.NewBuffer([]byte{})
|
||||
a.play = make(chan []byte)
|
||||
a.canPlay = make(chan bool)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue