opus

package
v0.0.0-...-d1df60a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MPL-2.0 Imports: 2 Imported by: 23

Documentation

Index

Constants

View Source
const ID = 4

Variables

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	*gopus.Decoder
}

func (*Decoder) Decode

func (d *Decoder) Decode(data []byte, frameSize int) ([]int16, error)

func (*Decoder) ID

func (*Decoder) ID() int

func (*Decoder) Reset

func (d *Decoder) Reset()

type Encoder

type Encoder struct {
	*gopus.Encoder
}

func (*Encoder) Encode

func (e *Encoder) Encode(pcm []int16, mframeSize, maxDataBytes int) ([]byte, error)

func (*Encoder) ID

func (*Encoder) ID() int

func (*Encoder) Reset

func (e *Encoder) Reset()

Jump to

Keyboard shortcuts

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