diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-06-15 13:58:30 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-15 13:58:30 +0300 |
| commit | 77e4b066cb8d506b4bc944ab4eb2d6e4679e2202 (patch) | |
| tree | 1d549eca619ed36cb881e487cb054c4643ac8376 /pkg/messages/types/svcPrefetch.go | |
| parent | change project name to sdp.go (diff) | |
| download | sdp.go-77e4b066cb8d506b4bc944ab4eb2d6e4679e2202.tar.gz sdp.go-77e4b066cb8d506b4bc944ab4eb2d6e4679e2202.tar.bz2 sdp.go-77e4b066cb8d506b4bc944ab4eb2d6e4679e2202.zip | |
enable multithreading with goroutines (#20)
Diffstat (limited to 'pkg/messages/types/svcPrefetch.go')
| -rw-r--r-- | pkg/messages/types/svcPrefetch.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/messages/types/svcPrefetch.go b/pkg/messages/types/svcPrefetch.go index 6aa39aa..55b6713 100644 --- a/pkg/messages/types/svcPrefetch.go +++ b/pkg/messages/types/svcPrefetch.go | |||
| @@ -2,17 +2,17 @@ package messages | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "github.com/pektezol/bitreader" | 4 | "github.com/pektezol/bitreader" |
| 5 | "github.com/pektezol/sdp.go/pkg/writer" | 5 | "github.com/pektezol/sdp.go/pkg/types" |
| 6 | ) | 6 | ) |
| 7 | 7 | ||
| 8 | type SvcPrefetch struct { | 8 | type SvcPrefetch struct { |
| 9 | SoundIndex int16 | 9 | SoundIndex int16 `json:"sound_index"` |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | func ParseSvcPrefetch(reader *bitreader.Reader) SvcPrefetch { | 12 | func ParseSvcPrefetch(reader *bitreader.Reader, demo *types.Demo) SvcPrefetch { |
| 13 | svcPrefetch := SvcPrefetch{ | 13 | svcPrefetch := SvcPrefetch{ |
| 14 | SoundIndex: int16(reader.TryReadBits(13)), | 14 | SoundIndex: int16(reader.TryReadBits(13)), |
| 15 | } | 15 | } |
| 16 | writer.TempAppendLine("\t\tSound Index: %d", svcPrefetch.SoundIndex) | 16 | demo.Writer.TempAppendLine("\t\tSound Index: %d", svcPrefetch.SoundIndex) |
| 17 | return svcPrefetch | 17 | return svcPrefetch |
| 18 | } | 18 | } |