libvorbis

package
v0.0.0-...-8f0eb0f Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Synthesis

func Synthesis(vb *Block, op *OggPacket) error

func SynthesisBlockin

func SynthesisBlockin(vd *DspState, vb *Block) error

func SynthesisHeaderin

func SynthesisHeaderin(vi *Info, vc *Comment, op *OggPacket) error

func SynthesisPcmout

func SynthesisPcmout(vd *DspState) [][]float32

func SynthesisRead

func SynthesisRead(vd *DspState, samples int) error

Types

type Block

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

func BlockInit

func BlockInit(vd *DspState) (*Block, error)

type Comment

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

func CommentInit

func CommentInit() *Comment

func (*Comment) UserComments

func (c *Comment) UserComments() []string

func (*Comment) Vendor

func (c *Comment) Vendor() string

type DspState

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

func SynthesisInit

func SynthesisInit(vi *Info) (*DspState, error)

type Error

type Error C.int
const (
	ErrFalse     Error = C.OV_FALSE
	ErrHole      Error = C.OV_HOLE
	ErrRead      Error = C.OV_EREAD
	ErrFault     Error = C.OV_EFAULT
	ErrImpl      Error = C.OV_EIMPL
	ErrInval     Error = C.OV_EINVAL
	ErrNotVorbis Error = C.OV_ENOTVORBIS
	ErrBadHeader Error = C.OV_EBADHEADER
	ErrVersion   Error = C.OV_EVERSION
	ErrNotAudio  Error = C.OV_ENOTAUDIO
	ErrBadPacket Error = C.OV_EBADPACKET
	ErrBadLink   Error = C.OV_EBADLINK
	ErrNoSeek    Error = C.OV_ENOSEEK
)

func (Error) Error

func (e Error) Error() string

type Info

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

func InfoInit

func InfoInit() *Info

func (*Info) Channels

func (i *Info) Channels() int

func (*Info) Rate

func (i *Info) Rate() int

type OggPacket

type OggPacket struct {
	Packet     []byte
	BOS        bool
	EOS        bool
	GranulePos int64
	PacketNo   int64
}

Jump to

Keyboard shortcuts

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