Documentation
¶
Overview ¶
Package g711 implements the ITU-T G.711 standard for audio companding.
Index ¶
- func ALawDecode(in []uint8) []int16
- func ALawDecodeSample(s uint8) int16
- func ALawEncode(in []int16) []uint8
- func ALawEncodeSample(s int16) uint8
- func MLawDecode(in []uint8) []int16
- func MLawDecodeSample(s uint8) int16
- func MLawEncode(in []int16) []uint8
- func MLawEncodeSample(s int16) uint8
- type ALawDecoder
- type ALawEncoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ALawDecode ¶
ALawDecode decodes a slice of a-law samples to PCM16.
func ALawDecodeSample ¶
ALawDecodeSample decodes an a-law sample to PCM16.
func ALawEncode ¶
ALawEncode encodes a slice of PCM16 samples to a-law.
func ALawEncodeSample ¶
ALawEncodeSample encodes a PCM16 sample to a-law.
func MLawDecode ¶
MLawDecode decodes a slice of μ-law samples to PCM16.
func MLawDecodeSample ¶
MLawDecodeSample decodes an μ-law sample to PCM16.
func MLawEncode ¶
MLawEncode encodes a slice of PCM16 samples to μ-law.
func MLawEncodeSample ¶
MLawEncodeSample encodes a PCM16 sample to μ-law.
Types ¶
type ALawDecoder ¶
func NewALawDecoder ¶
func NewALawDecoder(r io.Reader) (*ALawDecoder, error)
NewALawDecoder builds an io.Writer that consumes an io.Reader.
type ALawEncoder ¶
func NewALawEncoder ¶
func NewALawEncoder(r io.Reader) (*ALawEncoder, error)
NewALawEncoder builds an io.Writer that consumes an io.Reader.
Click to show internal directories.
Click to hide internal directories.