amrwb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 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

View Source
const (
	SDPNameOnly    = "AMR-WB"
	SDPNameAndRate = SDPNameOnly + "/16000"
	SDPName        = SDPNameAndRate // Deprecated: use SDPNameOnly or SDPNameAndRate
	SampleRate     = 16000
)
View Source
const (
	Storage               = amrwb.Storage
	RTPBandwidthEfficient = amrwb.RTPBandwidthEfficient
)

Variables

This section is empty.

Functions

func Encode

func Encode(w Writer, format amrwb.Format) media.PCM16Writer

func EncodeWith

func EncodeWith(w Writer, format amrwb.Format, mode amrwb.Mode) media.PCM16Writer

Types

type Decoder

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

func (*Decoder) Close

func (d *Decoder) Close() error

func (*Decoder) SampleRate

func (d *Decoder) SampleRate() int

func (*Decoder) String

func (d *Decoder) String() string

func (*Decoder) WriteSample

func (d *Decoder) WriteSample(in Sample) error

type Encoder

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

func (*Encoder) Close

func (e *Encoder) Close() error

func (*Encoder) SampleRate

func (e *Encoder) SampleRate() int

func (*Encoder) String

func (e *Encoder) String() string

func (*Encoder) WriteSample

func (e *Encoder) WriteSample(in media.PCM16Sample) error

type Format

type Format = amrwb.Format

type Sample

type Sample []byte

func (Sample) CopyTo

func (s Sample) CopyTo(dst []byte) (int, error)

func (Sample) Size

func (s Sample) Size() int

type Writer

type Writer = media.WriteCloser[Sample]

func Decode

func Decode(w media.PCM16Writer, format amrwb.Format) Writer

Jump to

Keyboard shortcuts

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