gopus

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Descriptor

func Descriptor() codec.Descriptor

func Register

func Register(registry *codec.SimpleRegistry)

Types

type Decoder

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

func (*Decoder) Close

func (d *Decoder) Close() error

func (*Decoder) DecodeInto

func (d *Decoder) DecodeInto(ctx context.Context, pkt *av.Packet, out *codec.DecodeResult) error

func (*Decoder) Descriptor

func (d *Decoder) Descriptor() codec.Descriptor

func (*Decoder) FlushInto

func (d *Decoder) FlushInto(ctx context.Context, _ *codec.DecodeResult) error

func (*Decoder) HandleEvent

func (d *Decoder) HandleEvent(ctx context.Context, event *av.Event) error

func (*Decoder) Open

func (d *Decoder) Open(ctx context.Context, config codec.DecodeConfig) error

type DecoderFactory

type DecoderFactory struct{}

func NewDecoderFactory

func NewDecoderFactory() DecoderFactory

func (DecoderFactory) NewDecoder

func (DecoderFactory) NewDecoder(ctx context.Context, config codec.DecodeConfig) (codec.Decoder, error)

type Encoder

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

func (*Encoder) Close

func (e *Encoder) Close() error

func (*Encoder) Descriptor

func (e *Encoder) Descriptor() codec.Descriptor

func (*Encoder) EncodeInto

func (e *Encoder) EncodeInto(ctx context.Context, frame *av.Frame, out *codec.EncodeResult) error

func (*Encoder) EncodedParameters

func (e *Encoder) EncodedParameters() av.CodecParameters

EncodedParameters reports the identification header, whose pre-skip tells decoders to drop the lookahead samples the first packets start with.

func (*Encoder) FlushInto

func (e *Encoder) FlushInto(ctx context.Context, out *codec.EncodeResult) error

FlushInto encodes what the input left at end of stream: the final partial frame and the lookahead still inside the encoder, padded with silence to whole Opus frames. The last packet's duration ends where the input did.

func (*Encoder) HandleEvent

func (e *Encoder) HandleEvent(ctx context.Context, event *av.Event) error

func (*Encoder) Open

func (e *Encoder) Open(ctx context.Context, config codec.EncodeConfig) error

type EncoderFactory

type EncoderFactory struct{}

func NewEncoderFactory

func NewEncoderFactory() EncoderFactory

func (EncoderFactory) NewEncoder

func (EncoderFactory) NewEncoder(ctx context.Context, config codec.EncodeConfig) (codec.Encoder, error)

Jump to

Keyboard shortcuts

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