import "github.com/xlab/vorbis-go/vorbis"
Package vorbis provides Go bindings for OggVorbis implementation by the Xiph.Org Foundation
cgo_helpers.go const.go doc.go types.go vorbis.go
const ( // OvFalse as defined in xlab/vorbis-go:0 OvFalse = -1 // OvEof as defined in xlab/vorbis-go:0 OvEof = -2 // OvHole as defined in xlab/vorbis-go:0 OvHole = -3 // OvEread as defined in xlab/vorbis-go:0 OvEread = -128 // OvEfault as defined in xlab/vorbis-go:0 OvEfault = -129 // OvEimpl as defined in xlab/vorbis-go:0 OvEimpl = -130 // OvEinval as defined in xlab/vorbis-go:0 OvEinval = -131 // OvEnotvorbis as defined in xlab/vorbis-go:0 OvEnotvorbis = -132 // OvEbadheader as defined in xlab/vorbis-go:0 OvEbadheader = -133 // OvEversion as defined in xlab/vorbis-go:0 OvEversion = -134 // OvEnotaudio as defined in xlab/vorbis-go:0 OvEnotaudio = -135 // OvEbadpacket as defined in xlab/vorbis-go:0 OvEbadpacket = -136 // OvEbadlink as defined in xlab/vorbis-go:0 OvEbadlink = -137 // OvEnoseek as defined in xlab/vorbis-go:0 OvEnoseek = -138 // OvEctlRatemanage2Get as defined in xlab/vorbis-go:0 OvEctlRatemanage2Get = 20 // OvEctlRatemanage2Set as defined in xlab/vorbis-go:0 OvEctlRatemanage2Set = 21 // OvEctlLowpassGet as defined in xlab/vorbis-go:0 OvEctlLowpassGet = 32 // OvEctlLowpassSet as defined in xlab/vorbis-go:0 OvEctlLowpassSet = 33 // OvEctlIblockGet as defined in xlab/vorbis-go:0 OvEctlIblockGet = 48 // OvEctlIblockSet as defined in xlab/vorbis-go:0 OvEctlIblockSet = 49 // OvEctlCouplingGet as defined in xlab/vorbis-go:0 OvEctlCouplingGet = 64 // OvEctlCouplingSet as defined in xlab/vorbis-go:0 OvEctlCouplingSet = 65 // OvEctlRatemanageGet as defined in xlab/vorbis-go:0 OvEctlRatemanageGet = 16 // OvEctlRatemanageSet as defined in xlab/vorbis-go:0 OvEctlRatemanageSet = 17 // OvEctlRatemanageAvg as defined in xlab/vorbis-go:0 OvEctlRatemanageAvg = 18 // OvEctlRatemanageHard as defined in xlab/vorbis-go:0 OvEctlRatemanageHard = 19 )
Analysis function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_analysis.html
AnalysisBlockout function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_analysis_blockout.html
AnalysisBuffer function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_analysis_buffer.html
func AnalysisHeaderout(v *DspState, vc *Comment, op *OggPacket, opComm *OggPacket, opCode *OggPacket) int32
AnalysisHeaderout function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_analysis_headerout.html
AnalysisInit function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_analysis_init.html
AnalysisWrote function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_analysis_wrote.html
BitrateAddblock function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_bitrate_addblock.html
BitrateFlushpacket function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_bitrate_flushpacket.html
BlockClear function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_block_clear.html
BlockInit function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_block_init.html
CommentAdd function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_add.html
CommentAddTag function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_add_tag.html
CommentClear function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_clear.html
CommentInit function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_init.html
CommentQuery function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_query.html
CommentQueryCount function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_query_count.html
CommentheaderOut function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_commentheader_out.html
DspClear function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_dsp_clear.html
EncodeCtl function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_encode_ctl.html
func EncodeInit(vi *Info, channels int, rate int, maxBitrate int, nominalBitrate int, minBitrate int) int32
EncodeInit function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_encode_init.html
EncodeInitVbr function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_encode_init_vbr.html
EncodeSetupInit function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_encode_setup_init.html
func EncodeSetupManaged(vi *Info, channels int, rate int, maxBitrate int, nominalBitrate int, minBitrate int) int32
EncodeSetupManaged function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_encode_setup_managed.html
EncodeSetupVbr function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_encode_setup_vbr.html
GranuleTime function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_granule_time.html
InfoBlocksize function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_info_blocksize.html
InfoClear function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_info_clear.html
InfoInit function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_info_init.html
OggPacketClear function as declared in https://xiph.org/ogg/doc/libogg/ogg_packet_clear.html
OggPageBos function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_bos.html
OggPageChecksumSet function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_checksum_set.html
OggPageContinued function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_continued.html
OggPageEos function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_eos.html
OggPagePackets function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_packets.html
OggPagePageno function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_pageno.html
OggPageSerialno function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_serialno.html
OggPageVersion function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_version.html
func OggStreamCheck(os *OggStreamState) int32
OggStreamCheck function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_check.html
func OggStreamClear(os *OggStreamState) int32
OggStreamClear function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_clear.html
func OggStreamDestroy(os *OggStreamState) int32
OggStreamDestroy function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_destroy.html
func OggStreamEos(os *OggStreamState) int32
OggStreamEos function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_eos.html
func OggStreamFlush(os *OggStreamState, og *OggPage) int32
OggStreamFlush function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_flush.html
func OggStreamFlushFill(os *OggStreamState, og *OggPage, nfill int32) int32
OggStreamFlushFill function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_flush_fill.html
func OggStreamInit(os *OggStreamState, serialno int32) int32
OggStreamInit function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_init.html
func OggStreamIovecin(os *OggStreamState, iov *OggIovec, count int32, eOS int, granulepos OggInt64) int32
OggStreamIovecin function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_iovecin.html
func OggStreamPacketin(os *OggStreamState, op *OggPacket) int32
OggStreamPacketin function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_packetin.html
func OggStreamPacketout(os *OggStreamState, op *OggPacket) int32
OggStreamPacketout function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_packetout.html
func OggStreamPacketpeek(os *OggStreamState, op *OggPacket) int32
OggStreamPacketpeek function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_packetpeek.html
func OggStreamPagein(os *OggStreamState, og *OggPage) int32
OggStreamPagein function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_pagein.html
func OggStreamPageout(os *OggStreamState, og *OggPage) int32
OggStreamPageout function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_pageout.html
func OggStreamPageoutFill(os *OggStreamState, og *OggPage, nfill int32) int32
OggStreamPageoutFill function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_pageout_fill.html
func OggStreamReset(os *OggStreamState) int32
OggStreamReset function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_reset.html
func OggStreamResetSerialno(os *OggStreamState, serialno int32) int32
OggStreamResetSerialno function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_reset_serialno.html
func OggSyncBuffer(oy *OggSyncState, size int) []byte
OggSyncBuffer function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_buffer.html
func OggSyncCheck(oy *OggSyncState) int32
OggSyncCheck function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_check.html
func OggSyncClear(oy *OggSyncState) int32
OggSyncClear function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_clear.html
func OggSyncDestroy(oy *OggSyncState) int32
OggSyncDestroy function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_destroy.html
func OggSyncInit(oy *OggSyncState) int32
OggSyncInit function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_init.html
func OggSyncPageout(oy *OggSyncState, og *OggPage) int32
OggSyncPageout function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_pageout.html
func OggSyncPageseek(oy *OggSyncState, og *OggPage) int
OggSyncPageseek function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_pageseek.html
func OggSyncReset(oy *OggSyncState) int32
OggSyncReset function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_reset.html
func OggSyncWrote(oy *OggSyncState, bytes int) int32
OggSyncWrote function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_wrote.html
PacketBlocksize function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_packet_blocksize.html
Synthesis function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis.html
SynthesisBlockin function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_blockin.html
SynthesisHalfrate function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_halfrate.html
SynthesisHalfrateP function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_halfrate_p.html
SynthesisHeaderin function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_headerin.html
SynthesisIdheader function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_idheader.html
SynthesisInit function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_init.html
SynthesisLapout function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_lapout.html
SynthesisPcmout function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_pcmout.html
SynthesisRead function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_read.html
SynthesisRestart function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_restart.html
SynthesisTrackonly function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_trackonly.html
VersionString function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_version_string.html
type Block struct { Pcm [][]float32 Lw int W int Nw int Pcmend int32 Mode int32 Eofflag int32 Granulepos OggInt64 Sequence OggInt64 Vd []DspState Localstore unsafe.Pointer Localtop int Localalloc int Totaluse int GlueBits int TimeBits int FloorBits int ResBits int Internal unsafe.Pointer // contains filtered or unexported fields }
Block as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_block.html
NewBlockRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
Ref returns the underlying reference to C object or nil if struct is nil.
type Comment struct { UserComments [][]byte CommentLengths []int32 Comments int32 Vendor []byte // contains filtered or unexported fields }
Comment as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment.html
NewCommentRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
Ref returns the underlying reference to C object or nil if struct is nil.
type DspState struct { Analysisp int32 Vi []Info Pcm [][]float32 Pcmret [][]float32 PcmStorage int32 PcmCurrent int32 PcmReturned int32 Preextrapolate int32 Eofflag int32 Lw int W int Nw int Centerw int Granulepos OggInt64 Sequence OggInt64 GlueBits OggInt64 TimeBits OggInt64 FloorBits OggInt64 ResBits OggInt64 BackendState unsafe.Pointer // contains filtered or unexported fields }
DspState as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_dsp_state.html
NewDspStateRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
Ref returns the underlying reference to C object or nil if struct is nil.
type Info struct { Version int32 Channels int32 Rate int BitrateUpper int BitrateNominal int BitrateLower int BitrateWindow int CodecSetup unsafe.Pointer // contains filtered or unexported fields }
Info as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_info.html
NewInfoRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
Ref returns the underlying reference to C object or nil if struct is nil.
OggInt16 type as declared in xlab/vorbis-go:0
OggInt32 type as declared in xlab/vorbis-go:0
OggInt64 type as declared in xlab/vorbis-go:0
OggPageGranulepos function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_granulepos.html
type OggIovec struct { IovBase unsafe.Pointer IovLen uint // contains filtered or unexported fields }
OggIovec as declared in https://xiph.org/ogg/doc/libogg/ogg_iovec_t.html
NewOggIovecRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
Ref returns the underlying reference to C object or nil if struct is nil.
type OggPacket struct { Packet []byte Bytes int BOS int EOS int Granulepos OggInt64 Packetno OggInt64 // contains filtered or unexported fields }
OggPacket as declared in https://xiph.org/ogg/doc/libogg/ogg_packet.html
NewOggPacketRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
Ref returns the underlying reference to C object or nil if struct is nil.
type OggPage struct { Header []byte HeaderLen int Body []byte BodyLen int // contains filtered or unexported fields }
OggPage as declared in https://xiph.org/ogg/doc/libogg/ogg_page.html
NewOggPageRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
Ref returns the underlying reference to C object or nil if struct is nil.
type OggStreamState struct { BodyData []byte BodyStorage int BodyFill int BodyReturned int LacingVals []int32 GranuleVals []OggInt64 LacingStorage int LacingFill int LacingPacket int LacingReturned int Header [282]byte HeaderFill int32 EOS int32 BOS int32 Serialno int Pageno int Packetno OggInt64 Granulepos OggInt64 // contains filtered or unexported fields }
OggStreamState as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_state.html
func NewOggStreamStateRef(ref unsafe.Pointer) *OggStreamState
NewOggStreamStateRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (x *OggStreamState) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (x *OggStreamState) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (x *OggStreamState) PassRef() (*C.ogg_stream_state, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (x OggStreamState) PassValue() (C.ogg_stream_state, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (x *OggStreamState) Ref() *C.ogg_stream_state
Ref returns the underlying reference to C object or nil if struct is nil.
type OggSyncState struct { Data []byte Storage int32 Fill int32 Returned int32 Unsynced int32 Headerbytes int32 Bodybytes int32 // contains filtered or unexported fields }
OggSyncState as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_state.html
func NewOggSyncStateRef(ref unsafe.Pointer) *OggSyncState
NewOggSyncStateRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (x *OggSyncState) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (x *OggSyncState) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (x *OggSyncState) PassRef() (*C.ogg_sync_state, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (x OggSyncState) PassValue() (C.ogg_sync_state, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (x *OggSyncState) Ref() *C.ogg_sync_state
Ref returns the underlying reference to C object or nil if struct is nil.
OggUint16 type as declared in xlab/vorbis-go:0
OggUint32 type as declared in xlab/vorbis-go:0
RawString reperesents a string backed by data on the C side.
Copy returns a Go-managed copy of raw string.
Package vorbis imports 4 packages (graph) and is imported by 3 packages. Updated 2019-05-19. Refresh now. Tools for package owners.