codec

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOpusCodecData

func NewOpusCodecData(sr int, cc av.ChannelLayout) av.AudioCodecData

func NewPCMAlawCodecData

func NewPCMAlawCodecData() av.AudioCodecData

func NewPCMCodecData

func NewPCMCodecData() av.AudioCodecData

func NewPCMMulawCodecData

func NewPCMMulawCodecData() av.AudioCodecData

Types

type OpusCodecData

type OpusCodecData struct {
	SampleRate_    int
	ChannelLayout_ av.ChannelLayout
	// contains filtered or unexported fields
}

func (OpusCodecData) ChannelLayout

func (self OpusCodecData) ChannelLayout() av.ChannelLayout

func (OpusCodecData) PacketDuration

func (self OpusCodecData) PacketDuration(data []byte) (time.Duration, error)

func (OpusCodecData) SampleFormat

func (self OpusCodecData) SampleFormat() av.SampleFormat

func (OpusCodecData) SampleRate

func (self OpusCodecData) SampleRate() int

func (OpusCodecData) Type

func (self OpusCodecData) Type() av.CodecType

type PCMUCodecData

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

func (PCMUCodecData) ChannelLayout

func (self PCMUCodecData) ChannelLayout() av.ChannelLayout

func (PCMUCodecData) PacketDuration

func (self PCMUCodecData) PacketDuration(data []byte) (time.Duration, error)

func (PCMUCodecData) SampleFormat

func (self PCMUCodecData) SampleFormat() av.SampleFormat

func (PCMUCodecData) SampleRate

func (self PCMUCodecData) SampleRate() int

func (PCMUCodecData) Type

func (self PCMUCodecData) Type() av.CodecType

type SpeexCodecData

type SpeexCodecData struct {
	fake.CodecData
}

func NewSpeexCodecData

func NewSpeexCodecData(sr int, cl av.ChannelLayout) SpeexCodecData

func (SpeexCodecData) PacketDuration

func (self SpeexCodecData) PacketDuration(data []byte) (time.Duration, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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