Documentation ¶
Overview ¶
Package vorbis contains the Vorbis reference encoder and decoder. This is the low-level interface. If you only want to extract audio from an Ogg Vorbis file, you probably want to use the vorbisfile package.
Index ¶
- Constants
- func Analysis(vb *Block, op *ogg.Packet) int
- func AnalysisBlockOut(v *DspState, vb *Block) int
- func AnalysisBuffer(v *DspState, vals int) [][]float32
- func AnalysisHeaderOut(v *DspState, vc *Comment, op, op_comm, op_code *ogg.Packet) int
- func AnalysisInit(v *DspState, vi *Info) int
- func AnalysisSetBufferItem(v *DspState, channel int, offset int, value float32)
- func AnalysisWrote(v *DspState, vals int) int
- func BitrateAddBlock(vb *Block) int
- func BitrateFlushPacket(vd *DspState, op *ogg.Packet) int
- func GranuleTime(v *DspState, granulepos int64) float64
- func PacketBlocksize(vi *Info, op *ogg.Packet) int32
- func PcmArrayHelper(pcm **float32, channel, offset int) float32
- func Synthesis(vb *Block, op *ogg.Packet) int
- func SynthesisBlockin(v *DspState, vb *Block) int
- func SynthesisHalfrate(v *Info, flag bool) int
- func SynthesisHalfrateP(v *Info) (result bool)
- func SynthesisHeaderIn(vi *Info, vc *Comment, op *ogg.Packet) int
- func SynthesisIdHeader(op *ogg.Packet) int
- func SynthesisInit(v *DspState, vi *Info) int
- func SynthesisLapOut(v *DspState, pcm ***float32) int
- func SynthesisPcmout(v *DspState, pcm ***float32) int
- func SynthesisRead(v *DspState, samples int) int
- func SynthesisRestart(v *DspState) int
- func SynthesisTrackOnly(vb *Block, op *ogg.Packet) int
- func VersionString() string
- type Block
- type Comment
- func (p *Comment) Add(comment string)
- func (p *Comment) AddTag(tag string, contents string)
- func (p *Comment) Clear()
- func (p *Comment) HeaderOut(op *ogg.Packet) int
- func (p *Comment) Init()
- func (p *Comment) Query(tag string, count int) string
- func (p *Comment) QueryCount(tag string) int
- func (p *Comment) UserComments() (UserComments []string)
- func (p *Comment) Vendor() string
- type DspState
- type Info
Constants ¶
View Source
const ( FALSE = -1 EOF = -2 HOLE = -3 EREAD = -128 EFAULT = -129 EIMPL = -130 EINVAL = -131 ENOTVORBIS = -132 EBADHEADER = -133 EVERSION = -134 ENOTAUDIO = -135 EBADPACKET = -136 EBADLINK = -137 ENOSEEK = -138 )
Vorbis ERRORS and return codes
Variables ¶
This section is empty.
Functions ¶
func AnalysisBlockOut ¶
func AnalysisBuffer ¶
func AnalysisHeaderOut ¶
func AnalysisInit ¶
func AnalysisSetBufferItem ¶
func AnalysisWrote ¶
func BitrateAddBlock ¶
func GranuleTime ¶
func PcmArrayHelper ¶
This helper function is to solve the problems with C-arrays and Go. To avoid these problems, the C-array is just called from within C, for each value of the array.
func SynthesisBlockin ¶
func SynthesisHalfrate ¶
func SynthesisHalfrateP ¶
func SynthesisIdHeader ¶
func SynthesisInit ¶
func SynthesisLapOut ¶
func SynthesisPcmout ¶
func SynthesisRead ¶
func SynthesisRestart ¶
func VersionString ¶
func VersionString() string
Types ¶
type Comment ¶
type Comment C.vorbis_comment
Comment struct defines an Ogg Vorbis comment.
func (*Comment) QueryCount ¶
func (*Comment) UserComments ¶
type DspState ¶
type DspState C.vorbis_dsp_state
DspState struct is the state for one instance of a Vorbis encoder or decoder.
type Info ¶
type Info C.vorbis_info
Info struct contains basic information about the audio in a vorbis bitstream.
Click to show internal directories.
Click to hide internal directories.