Documentation
¶
Index ¶
- Constants
- func DecodeALawTo(out []int16, buf []byte)
- func DecodeULawTo(out []int16, buf []byte)
- func EncodeALaw(w ALawWriter) media.PCM16Writer
- func EncodeALawTo(out []byte, buf []int16)
- func EncodeULaw(w ULawWriter) media.PCM16Writer
- func EncodeULawTo(out []byte, buf []int16)
- type ALawDecoder
- type ALawEncoder
- type ALawSample
- type ALawWriter
- type ULawDecoder
- type ULawEncoder
- type ULawSample
- type ULawWriter
Constants ¶
View Source
const ALawSDPName = "PCMA/8000"
View Source
const ULawSDPName = "PCMU/8000"
Variables ¶
This section is empty.
Functions ¶
func DecodeALawTo ¶
func DecodeULawTo ¶
func EncodeALaw ¶
func EncodeALaw(w ALawWriter) media.PCM16Writer
func EncodeALawTo ¶
func EncodeULaw ¶
func EncodeULaw(w ULawWriter) media.PCM16Writer
func EncodeULawTo ¶
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) 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) 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
Click to show internal directories.
Click to hide internal directories.