opuswriter

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpusWriter

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

OpusWriter is used to take RTP packets and write them to an OGG on disk

func New

func New(fileName string, sampleRate uint32, channelCount uint16) (*OpusWriter, error)

New builds a new OGG Opus writer

func NewWith

func NewWith(out io.Writer, sampleRate uint32, channelCount uint16) (*OpusWriter, error)

NewWith initialize a new OGG Opus writer with an io.Writer output

func (*OpusWriter) Close

func (i *OpusWriter) Close() error

Close stops the recording

func (*OpusWriter) WriteRTP

func (i *OpusWriter) WriteRTP(packet *rtp.Packet) error

WriteRTP adds a new packet and writes the appropriate headers for it

Jump to

Keyboard shortcuts

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