aboutsummaryrefslogtreecommitdiff
path: root/pkg/messages/types/svcVoiceData.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/messages/types/svcVoiceData.go')
-rw-r--r--pkg/messages/types/svcVoiceData.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/messages/types/svcVoiceData.go b/pkg/messages/types/svcVoiceData.go
index b6c81d4..9609d80 100644
--- a/pkg/messages/types/svcVoiceData.go
+++ b/pkg/messages/types/svcVoiceData.go
@@ -9,12 +9,12 @@ type SvcVoiceData struct {
9 Data []byte 9 Data []byte
10} 10}
11 11
12func ParseSvcVoiceData(reader *bitreader.ReaderType) SvcVoiceData { 12func ParseSvcVoiceData(reader *bitreader.Reader) SvcVoiceData {
13 svcVoiceData := SvcVoiceData{ 13 svcVoiceData := SvcVoiceData{
14 Client: int8(reader.TryReadBits(8)), 14 Client: int8(reader.TryReadBits(8)),
15 Proximity: int8(reader.TryReadBits(8)), 15 Proximity: int8(reader.TryReadBits(8)),
16 Length: int16(reader.TryReadBits(16)), 16 Length: int16(reader.TryReadBits(16)),
17 } 17 }
18 svcVoiceData.Data = reader.TryReadBitsToSlice(int(svcVoiceData.Length)) 18 svcVoiceData.Data = reader.TryReadBitsToSlice(uint64(svcVoiceData.Length))
19 return svcVoiceData 19 return svcVoiceData
20} 20}