Documentation ¶
Index ¶
- Constants
- type GSTPulseAudioCapture
- func (c *GSTPulseAudioCapture) GetAudioCodecParameters() *webrtc.RTPCodecParameters
- func (c *GSTPulseAudioCapture) GetName() string
- func (c *GSTPulseAudioCapture) GetProgramRunnerOgg(path *os.File) (*util.ProgramRunner, error)
- func (c *GSTPulseAudioCapture) GetVideoCodecParameters() *webrtc.RTPCodecParameters
- type PulseAudioCaptureSource
- func (c *PulseAudioCaptureSource) EncodeSamples(data []int16) (int, error)
- func (c *PulseAudioCaptureSource) GetAudioCodecParameters() webrtc.RTPCodecParameters
- func (c *PulseAudioCaptureSource) GetName() string
- func (c *PulseAudioCaptureSource) StreamAudio(ctx context.Context, pktChan chan<- *rtp.Packet) error
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 ¶
Click to show internal directories.
Click to hide internal directories.