opus

package
v0.0.0-...-ea0281a Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

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.

Jump to

Keyboard shortcuts

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