Documentation
¶
Overview ¶
Package oggreader implements the Ogg media container reader
Package oggwriter implements OGG media container writer
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Header ¶
type Header struct {
ChannelMap uint8
Channels uint8
OutputGain uint16
PreSkip uint16
SampleRate uint32
Version uint8
}
Header is the metadata from the first two pages in the file (ID and Comment)
https://tools.ietf.org/html/rfc7845.html#section-3
type PageHeader ¶
type PageHeader struct {
GranulePosition uint64
// contains filtered or unexported fields
}
PageHeader is the metadata for a Page Pages are the fundamental unit of multiplexing in an Ogg stream
https://tools.ietf.org/html/rfc7845.html#section-1
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is used to read Ogg files and return page payloads
func (*Reader) ParseNextPage ¶
func (o *Reader) ParseNextPage() ([]byte, *PageHeader, error)
ParseNextPage reads from stream and returns Ogg page payload, header, and an error if there is incomplete page data.