codec

package
v1.0.61 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPCMAlawCodecData

func NewPCMAlawCodecData(index int, direction string, backchannel bool) av.AudioCodecData

func NewPCMMulawCodecData

func NewPCMMulawCodecData(index int, direction string, backchannel bool) av.AudioCodecData

Types

type PCMUCodecData

type PCMUCodecData struct {
	Index       int
	Direction   string
	BackChannel bool
	// contains filtered or unexported fields
}

func (PCMUCodecData) ChannelLayout

func (self PCMUCodecData) ChannelLayout() av.ChannelLayout

func (PCMUCodecData) GetDirection added in v1.0.61

func (self PCMUCodecData) GetDirection() string

func (PCMUCodecData) GetIndex added in v1.0.61

func (self PCMUCodecData) GetIndex() int

func (PCMUCodecData) IsBackChannel added in v1.0.61

func (self PCMUCodecData) IsBackChannel() bool

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
	Index       int
	Direction   string
	BackChannel bool
}

func NewSpeexCodecData

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

func (SpeexCodecData) GetDirection added in v1.0.61

func (self SpeexCodecData) GetDirection() string

func (SpeexCodecData) GetIndex added in v1.0.61

func (self SpeexCodecData) GetIndex() int

func (SpeexCodecData) IsBackChannel added in v1.0.61

func (self SpeexCodecData) IsBackChannel() bool

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