oggwriter

package
v4.0.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package oggwriter implements OGG media container writer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OggWriter

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

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

func New

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

New builds a new OGG Opus writer

func NewWith

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

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

func (*OggWriter) Close

func (i *OggWriter) Close() error

Close stops the recording

func (*OggWriter) WriteRTP

func (i *OggWriter) 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