g711

package
v0.0.0-...-a4909c6 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Index

Constants

View Source
const ALawSDPName = "PCMA/8000"
View Source
const ULawSDPName = "PCMU/8000"

Variables

This section is empty.

Functions

func DecodeALawTo

func DecodeALawTo(out []int16, buf []byte)

func DecodeULawTo

func DecodeULawTo(out []int16, buf []byte)

func EncodeALaw

func EncodeALaw(w ALawWriter) media.PCM16Writer

func EncodeALawTo

func EncodeALawTo(out []byte, buf []int16)

func EncodeULaw

func EncodeULaw(w ULawWriter) media.PCM16Writer

func EncodeULawTo

func EncodeULawTo(out []byte, buf []int16)

Types

type ALawDecoder

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

func (*ALawDecoder) Close

func (d *ALawDecoder) Close() error

func (*ALawDecoder) SampleRate

func (d *ALawDecoder) SampleRate() int

func (*ALawDecoder) String

func (d *ALawDecoder) String() string

func (*ALawDecoder) WriteSample

func (d *ALawDecoder) WriteSample(in ALawSample) error

type ALawEncoder

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

func (*ALawEncoder) Close

func (e *ALawEncoder) Close() error

func (*ALawEncoder) SampleRate

func (e *ALawEncoder) SampleRate() int

func (*ALawEncoder) String

func (e *ALawEncoder) String() string

func (*ALawEncoder) WriteSample

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

type ALawSample

type ALawSample []byte

func (ALawSample) CopyTo

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

func (ALawSample) Decode

func (s ALawSample) Decode() media.PCM16Sample

func (*ALawSample) Encode

func (s *ALawSample) Encode(data media.PCM16Sample)

func (ALawSample) Size

func (s ALawSample) Size() int

type ALawWriter

type ALawWriter = media.WriteCloser[ALawSample]

func DecodeALaw

func DecodeALaw(w media.PCM16Writer) ALawWriter

type ULawDecoder

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

func (*ULawDecoder) Close

func (d *ULawDecoder) Close() error

func (*ULawDecoder) SampleRate

func (d *ULawDecoder) SampleRate() int

func (*ULawDecoder) String

func (d *ULawDecoder) String() string

func (*ULawDecoder) WriteSample

func (d *ULawDecoder) WriteSample(in ULawSample) error

type ULawEncoder

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

func (*ULawEncoder) Close

func (e *ULawEncoder) Close() error

func (*ULawEncoder) SampleRate

func (e *ULawEncoder) SampleRate() int

func (*ULawEncoder) String

func (e *ULawEncoder) String() string

func (*ULawEncoder) WriteSample

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

type ULawSample

type ULawSample []byte

func (ULawSample) CopyTo

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

func (ULawSample) Decode

func (s ULawSample) Decode() media.PCM16Sample

func (*ULawSample) Encode

func (s *ULawSample) Encode(data media.PCM16Sample)

func (ULawSample) Size

func (s ULawSample) Size() int

type ULawWriter

type ULawWriter = media.WriteCloser[ULawSample]

func DecodeULaw

func DecodeULaw(w media.PCM16Writer) ULawWriter

Jump to

Keyboard shortcuts

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