Add audio stream close

This commit is contained in:
Nonoo 2020-10-18 13:19:52 +02:00
parent 276e31b111
commit c80ecd2d3b
4 changed files with 22 additions and 5 deletions

View file

@ -102,9 +102,7 @@ func (s *controlStream) sendDisconnect() {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00})
s.common.send([]byte{0x10, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00,
byte(s.common.localSID >> 24), byte(s.common.localSID >> 16), byte(s.common.localSID >> 8), byte(s.common.localSID),
byte(s.common.remoteSID >> 24), byte(s.common.remoteSID >> 16), byte(s.common.remoteSID >> 8), byte(s.common.remoteSID)})
s.common.sendDisconnect()
}
func (s *controlStream) sendPkt0() {