slin

package
v0.0.0-...-9401d5b Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SDPName = "L16/8000"

Variables

This section is empty.

Functions

func EncodeSLIN

func EncodeSLIN(w SLINWriter) media.PCM16Writer

Types

type SLINDecoder

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

func (*SLINDecoder) Close

func (d *SLINDecoder) Close() error

func (*SLINDecoder) SampleRate

func (d *SLINDecoder) SampleRate() int

func (*SLINDecoder) String

func (d *SLINDecoder) String() string

func (*SLINDecoder) WriteSample

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

type SLINEncoder

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

func (*SLINEncoder) Close

func (e *SLINEncoder) Close() error

func (*SLINEncoder) SampleRate

func (e *SLINEncoder) SampleRate() int

func (*SLINEncoder) String

func (e *SLINEncoder) String() string

func (*SLINEncoder) WriteSample

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

type SLINWriter

type SLINWriter = media.WriteCloser[Sample]

func DecodeSLIN

func DecodeSLIN(w media.PCM16Writer) SLINWriter

type Sample

type Sample []byte

func (Sample) CopyTo

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

func (Sample) Decode

func (s Sample) Decode() media.PCM16Sample

func (*Sample) Encode

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

func (Sample) Size

func (s Sample) Size() int

Jump to

Keyboard shortcuts

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