Documentation ¶
Overview ¶
Package opus contains the opus video codec.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultStreamConfig gostream.StreamConfig
DefaultStreamConfig configures Opus as the audio encoder for a stream.
Functions ¶
func NewEncoder ¶
func NewEncoder(sampleRate, channelCount int, latency time.Duration, logger golog.Logger) (ourcodec.AudioEncoder, error)
NewEncoder returns an Opus encoder that can encode images of the given width and height. It will also ensure that it produces key frames at the given interval.
func NewEncoderFactory ¶
func NewEncoderFactory() codec.AudioEncoderFactory
NewEncoderFactory returns an Opus audio encoder factory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.