(puber IPuber, stuff ...any)
| 10 | var _ SpesificTrack = (*Opus)(nil) |
| 11 | |
| 12 | func NewOpus(puber IPuber, stuff ...any) (opus *Opus) { |
| 13 | opus = &Opus{} |
| 14 | opus.CodecID = codec.CodecID_OPUS |
| 15 | opus.SampleSize = 16 |
| 16 | opus.Channels = 2 |
| 17 | opus.AVCCHead = []byte{(byte(opus.CodecID) << 4) | (1 << 1)} |
| 18 | opus.SetStuff("opus", uint32(48000), byte(111), opus, stuff, puber) |
| 19 | if opus.BytesPool == nil { |
| 20 | opus.BytesPool = make(util.BytesPool, 17) |
| 21 | } |
| 22 | return |
| 23 | } |
| 24 | |
| 25 | type Opus struct { |
| 26 | Audio |
no test coverage detected