pulseaudio

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const AUDIO_BUFFER_SIZE = 200
View Source
const AUDIO_SAMPLE_RATE = 8000
View Source
const RTP_OUTBOUND_MTU = 8000

Variables

This section is empty.

Functions

This section is empty.

Types

type GSTPulseAudioCapture

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

func NewGSTPulseAudioCapture

func NewGSTPulseAudioCapture() *GSTPulseAudioCapture

func (*GSTPulseAudioCapture) GetAudioCodecParameters

func (c *GSTPulseAudioCapture) GetAudioCodecParameters() *webrtc.RTPCodecParameters

func (*GSTPulseAudioCapture) GetName

func (c *GSTPulseAudioCapture) GetName() string

func (*GSTPulseAudioCapture) GetProgramRunnerOgg

func (c *GSTPulseAudioCapture) GetProgramRunnerOgg(path *os.File) (*util.ProgramRunner, error)

func (*GSTPulseAudioCapture) GetVideoCodecParameters

func (c *GSTPulseAudioCapture) GetVideoCodecParameters() *webrtc.RTPCodecParameters

type PulseAudioCaptureSource

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

func NewPulseAudioCapture

func NewPulseAudioCapture() *PulseAudioCaptureSource

func (*PulseAudioCaptureSource) EncodeSamples

func (c *PulseAudioCaptureSource) EncodeSamples(data []int16) (int, error)

func (*PulseAudioCaptureSource) GetAudioCodecParameters

func (c *PulseAudioCaptureSource) GetAudioCodecParameters() webrtc.RTPCodecParameters

func (*PulseAudioCaptureSource) GetName

func (c *PulseAudioCaptureSource) GetName() string

func (*PulseAudioCaptureSource) StreamAudio

func (c *PulseAudioCaptureSource) StreamAudio(ctx context.Context, pktChan chan<- *rtp.Packet) error

Jump to

Keyboard shortcuts

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