Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SegmentBinaryBits ¶
type SegmentBinaryBits struct { SymbolRate int Frequency int DataBits int Data []byte SegmentNumber int }
SegmentBinaryBits packs bits into bytes. The number of bits in the segment is contained in DataBits
type SegmentBinaryBytes ¶
SegmentBinaryBytes uses one byte per received bit
func (*SegmentBinaryBytes) ToSegmentBinaryBits ¶
func (s *SegmentBinaryBytes) ToSegmentBinaryBits() *SegmentBinaryBits
type SegmentCS8Raw ¶
SegmentCS8Raw is a sample segment of type complex64. Assumes little endian.
func (*SegmentCS8Raw) ToComplex64 ¶
func (s *SegmentCS8Raw) ToComplex64() *SegmentComplex64
type SegmentComplex64 ¶
SegmentComplex64 is a sample segment of type complex64
func (*SegmentComplex64) ToReal32 ¶
func (s *SegmentComplex64) ToReal32() *SegmentFloat32
type SegmentFloat32 ¶
SegmentFloat32 is a real-valued segment of type float32.
type SegmentInt16 ¶
type TaggedAudioFrameOpus ¶
type TaggedAudioFrameOpus struct { TalkGroup *TalkGroup Audio *SegmentBinaryBytes SampleLengthMicroseconds int Timestamp time.Time }
func OpusFrameFromProtobuf ¶
func OpusFrameFromProtobuf(a *pb.TaggedOpusFrame) *TaggedAudioFrameOpus
func (*TaggedAudioFrameOpus) ToProtobuf ¶
func (t *TaggedAudioFrameOpus) ToProtobuf() *pb.TaggedOpusFrame
type TaggedAudioSampleFloat32 ¶
type TaggedAudioSampleFloat32 struct { TalkGroup *TalkGroup Audio *SegmentFloat32 }
Click to show internal directories.
Click to hide internal directories.