output

package
v0.0.0-...-fff4e01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpusEncoder

type OpusEncoder struct {
	// contains filtered or unexported fields
}

func NewOpusEncoder

func NewOpusEncoder(sampleRate, systemID, tgid int, outputChan chan *types.TaggedAudioFrameOpus) (*OpusEncoder, error)

func (*OpusEncoder) ReceiveChannel

func (o *OpusEncoder) ReceiveChannel() chan<- *types.TaggedAudioSampleFloat32

func (*OpusEncoder) Start

func (o *OpusEncoder) Start(ctx context.Context) error

type OutputDestination

type OutputDestination struct {
	Host string
	Port int
}

type SimpleAudioOutput

type SimpleAudioOutput struct {
	// contains filtered or unexported fields
}

func NewSimpleAudioOutput

func NewSimpleAudioOutput(dest io.Writer, sampleRate int, talkGroups []int) *SimpleAudioOutput

func (*SimpleAudioOutput) Receive

func (s *SimpleAudioOutput) Receive() chan<- *types.TaggedAudioSampleFloat32

func (*SimpleAudioOutput) Start

func (s *SimpleAudioOutput) Start(ctx context.Context) error

type TaggedOpusFrameUDPOutput

type TaggedOpusFrameUDPOutput struct {
	// contains filtered or unexported fields
}

func NewTaggedOpusFrameUDPOutput

func NewTaggedOpusFrameUDPOutput(dests []config.OutputDestination, sampleRate int, metrics api.WriteAPI) *TaggedOpusFrameUDPOutput

func (*TaggedOpusFrameUDPOutput) Receive

func (*TaggedOpusFrameUDPOutput) Start

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL