MCPcopy Create free account
hub / github.com/Monibuca/engine / WriteRawBytes

Method WriteRawBytes

track/audio.go:68–74  ·  view source on GitHub ↗
(pts uint32, raw util.IBytes)

Source from the content-addressed store, hash-verified

66}
67
68func (av *Audio) WriteRawBytes(pts uint32, raw util.IBytes) {
69 curValue := av.Value
70 curValue.BytesIn += raw.Len()
71 av.Value.AUList.Push(av.GetFromPool(raw))
72 av.generateTimestamp(pts)
73 av.Flush()
74}
75
76func (av *Audio) WriteAVCC(ts uint32, frame *util.BLL) {
77 av.Value.WriteAVCC(ts, frame)

Callers

nothing calls this directly

Calls 5

FlushMethod · 0.95
LenMethod · 0.65
PushMethod · 0.65
GetFromPoolMethod · 0.65
generateTimestampMethod · 0.65

Tested by

no test coverage detected