Versions in this module Expand all Collapse all v0 v0.0.1 Nov 4, 2026 Changes in this version + func NewWith(in io.Reader) (*OggReader, *OggHeader, error) + type HeaderType string + const HeaderOpusID + const HeaderOpusTags + type OggHeader struct + ChannelMap uint8 + ChannelMapping string + Channels uint8 + CoupledCount uint8 + OutputGain uint16 + PreSkip uint16 + SampleRate uint32 + StreamCount uint8 + Version uint8 + func ParseOpusHead(payload []byte) (*OggHeader, error) + type OggPageHeader struct + GranulePosition uint64 + Serial uint32 + func (p *OggPageHeader) HeaderType(payload []byte) (HeaderType, bool) + type OggReader struct + func NewWithOptions(in io.Reader, options ...Option) (*OggReader, error) + func (o *OggReader) ParseNextPage() ([]byte, *OggPageHeader, error) + func (o *OggReader) ResetReader(reset func(bytesRead int64) io.Reader) + type Option func(*OggReader) error + func WithDoChecksum(doChecksum bool) Option + type OpusTags struct + UserComments []UserComment + Vendor string + func ParseOpusTags(payload []byte) (*OpusTags, error) + type UserComment struct + Comment string + Value string