vorbis-go: github.com/xlab/vorbis-go/vorbis Index | Files

package vorbis

import "github.com/xlab/vorbis-go/vorbis"

Package vorbis provides Go bindings for OggVorbis implementation by the Xiph.Org Foundation

Index

Package Files

cgo_helpers.go const.go doc.go types.go vorbis.go

Constants

const (
    // OvFalse as defined in vorbis/codec.h:222
    OvFalse = -1
    // OvEof as defined in vorbis/codec.h:223
    OvEof = -2
    // OvHole as defined in vorbis/codec.h:224
    OvHole = -3
    // OvEread as defined in vorbis/codec.h:226
    OvEread = -128
    // OvEfault as defined in vorbis/codec.h:227
    OvEfault = -129
    // OvEimpl as defined in vorbis/codec.h:228
    OvEimpl = -130
    // OvEinval as defined in vorbis/codec.h:229
    OvEinval = -131
    // OvEnotvorbis as defined in vorbis/codec.h:230
    OvEnotvorbis = -132
    // OvEbadheader as defined in vorbis/codec.h:231
    OvEbadheader = -133
    // OvEversion as defined in vorbis/codec.h:232
    OvEversion = -134
    // OvEnotaudio as defined in vorbis/codec.h:233
    OvEnotaudio = -135
    // OvEbadpacket as defined in vorbis/codec.h:234
    OvEbadpacket = -136
    // OvEbadlink as defined in vorbis/codec.h:235
    OvEbadlink = -137
    // OvEnoseek as defined in vorbis/codec.h:236
    OvEnoseek = -138
)

func Analysis Uses

func Analysis(vb *Block, op *OggPacket) int32

Analysis function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_analysis.html

func AnalysisBlockout Uses

func AnalysisBlockout(v *DspState, vb *Block) int32

AnalysisBlockout function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_analysis_blockout.html

func AnalysisBuffer Uses

func AnalysisBuffer(v *DspState, vals int32) **float32

AnalysisBuffer function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_analysis_buffer.html

func AnalysisHeaderout Uses

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

func AnalysisInit Uses

func AnalysisInit(v *DspState, vi *Info) int32

AnalysisInit function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_analysis_init.html

func AnalysisWrote Uses

func AnalysisWrote(v *DspState, vals int32) int32

AnalysisWrote function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_analysis_wrote.html

func BitrateAddblock Uses

func BitrateAddblock(vb *Block) int32

BitrateAddblock function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_bitrate_addblock.html

func BitrateFlushpacket Uses

func BitrateFlushpacket(vd *DspState, op *OggPacket) int32

BitrateFlushpacket function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_bitrate_flushpacket.html

func BlockClear Uses

func BlockClear(vb *Block) int32

BlockClear function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_block_clear.html

func BlockInit Uses

func BlockInit(v *DspState, vb *Block) int32

BlockInit function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_block_init.html

func CommentAdd Uses

func CommentAdd(vc *Comment, comment string)

CommentAdd function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_add.html

func CommentAddTag Uses

func CommentAddTag(vc *Comment, tag string, contents string)

CommentAddTag function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_add_tag.html

func CommentClear Uses

func CommentClear(vc *Comment)

CommentClear function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_clear.html

func CommentInit Uses

func CommentInit(vc *Comment)

CommentInit function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_init.html

func CommentQuery Uses

func CommentQuery(vc *Comment, tag string, count int32) *byte

CommentQuery function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_query.html

func CommentQueryCount Uses

func CommentQueryCount(vc *Comment, tag string) int32

CommentQueryCount function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_query_count.html

func CommentheaderOut Uses

func CommentheaderOut(vc *Comment, op *OggPacket) int32

CommentheaderOut function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_commentheader_out.html

func DspClear Uses

func DspClear(v *DspState)

DspClear function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_dsp_clear.html

func GranuleTime Uses

func GranuleTime(v *DspState, granulepos OggInt64) float64

GranuleTime function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_granule_time.html

func InfoBlocksize Uses

func InfoBlocksize(vi *Info, zo int32) int32

InfoBlocksize function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_info_blocksize.html

func InfoClear Uses

func InfoClear(vi *Info)

InfoClear function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_info_clear.html

func InfoInit Uses

func InfoInit(vi *Info)

InfoInit function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_info_init.html

func OggPacketClear Uses

func OggPacketClear(op *OggPacket)

OggPacketClear function as declared in https://xiph.org/ogg/doc/libogg/ogg_packet_clear.html

func OggPageBos Uses

func OggPageBos(og *OggPage) int32

OggPageBos function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_bos.html

func OggPageChecksumSet Uses

func OggPageChecksumSet(og *OggPage)

OggPageChecksumSet function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_checksum_set.html

func OggPageContinued Uses

func OggPageContinued(og *OggPage) int32

OggPageContinued function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_continued.html

func OggPageEos Uses

func OggPageEos(og *OggPage) int32

OggPageEos function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_eos.html

func OggPagePackets Uses

func OggPagePackets(og *OggPage) int32

OggPagePackets function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_packets.html

func OggPagePageno Uses

func OggPagePageno(og *OggPage) int

OggPagePageno function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_pageno.html

func OggPageSerialno Uses

func OggPageSerialno(og *OggPage) int32

OggPageSerialno function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_serialno.html

func OggPageVersion Uses

func OggPageVersion(og *OggPage) int32

OggPageVersion function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_version.html

func OggStreamCheck Uses

func OggStreamCheck(os *OggStreamState) int32

OggStreamCheck function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_check.html

func OggStreamClear Uses

func OggStreamClear(os *OggStreamState) int32

OggStreamClear function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_clear.html

func OggStreamDestroy Uses

func OggStreamDestroy(os *OggStreamState) int32

OggStreamDestroy function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_destroy.html

func OggStreamEos Uses

func OggStreamEos(os *OggStreamState) int32

OggStreamEos function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_eos.html

func OggStreamFlush Uses

func OggStreamFlush(os *OggStreamState, og *OggPage) int32

OggStreamFlush function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_flush.html

func OggStreamFlushFill Uses

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 Uses

func OggStreamInit(os *OggStreamState, serialno int32) int32

OggStreamInit function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_init.html

func OggStreamIovecin Uses

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 Uses

func OggStreamPacketin(os *OggStreamState, op *OggPacket) int32

OggStreamPacketin function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_packetin.html

func OggStreamPacketout Uses

func OggStreamPacketout(os *OggStreamState, op *OggPacket) int32

OggStreamPacketout function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_packetout.html

func OggStreamPacketpeek Uses

func OggStreamPacketpeek(os *OggStreamState, op *OggPacket) int32

OggStreamPacketpeek function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_packetpeek.html

func OggStreamPagein Uses

func OggStreamPagein(os *OggStreamState, og *OggPage) int32

OggStreamPagein function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_pagein.html

func OggStreamPageout Uses

func OggStreamPageout(os *OggStreamState, og *OggPage) int32

OggStreamPageout function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_pageout.html

func OggStreamPageoutFill Uses

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 Uses

func OggStreamReset(os *OggStreamState) int32

OggStreamReset function as declared in https://xiph.org/ogg/doc/libogg/ogg_stream_reset.html

func OggStreamResetSerialno Uses

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 Uses

func OggSyncBuffer(oy *OggSyncState, size int) []byte

OggSyncBuffer function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_buffer.html

func OggSyncCheck Uses

func OggSyncCheck(oy *OggSyncState) int32

OggSyncCheck function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_check.html

func OggSyncClear Uses

func OggSyncClear(oy *OggSyncState) int32

OggSyncClear function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_clear.html

func OggSyncDestroy Uses

func OggSyncDestroy(oy *OggSyncState) int32

OggSyncDestroy function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_destroy.html

func OggSyncInit Uses

func OggSyncInit(oy *OggSyncState) int32

OggSyncInit function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_init.html

func OggSyncPageout Uses

func OggSyncPageout(oy *OggSyncState, og *OggPage) int32

OggSyncPageout function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_pageout.html

func OggSyncPageseek Uses

func OggSyncPageseek(oy *OggSyncState, og *OggPage) int

OggSyncPageseek function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_pageseek.html

func OggSyncReset Uses

func OggSyncReset(oy *OggSyncState) int32

OggSyncReset function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_reset.html

func OggSyncWrote Uses

func OggSyncWrote(oy *OggSyncState, bytes int) int32

OggSyncWrote function as declared in https://xiph.org/ogg/doc/libogg/ogg_sync_wrote.html

func PacketBlocksize Uses

func PacketBlocksize(vi *Info, op *OggPacket) int

PacketBlocksize function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_packet_blocksize.html

func Synthesis Uses

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

Synthesis function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis.html

func SynthesisBlockin Uses

func SynthesisBlockin(v *DspState, vb *Block) int32

SynthesisBlockin function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_blockin.html

func SynthesisHalfrate Uses

func SynthesisHalfrate(v *Info, flag int32) int32

SynthesisHalfrate function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_halfrate.html

func SynthesisHalfrateP Uses

func SynthesisHalfrateP(v *Info) int32

SynthesisHalfrateP function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_halfrate_p.html

func SynthesisHeaderin Uses

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

SynthesisHeaderin function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_headerin.html

func SynthesisIdheader Uses

func SynthesisIdheader(op *OggPacket) int32

SynthesisIdheader function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_idheader.html

func SynthesisInit Uses

func SynthesisInit(v *DspState, vi *Info) int32

SynthesisInit function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_init.html

func SynthesisLapout Uses

func SynthesisLapout(v *DspState, pcm ***float32) int32

SynthesisLapout function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_lapout.html

func SynthesisPcmout Uses

func SynthesisPcmout(v *DspState, pcm [][][]float32) int32

SynthesisPcmout function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_pcmout.html

func SynthesisRead Uses

func SynthesisRead(v *DspState, samples int32) int32

SynthesisRead function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_read.html

func SynthesisRestart Uses

func SynthesisRestart(v *DspState) int32

SynthesisRestart function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_restart.html

func SynthesisTrackonly Uses

func SynthesisTrackonly(vb *Block, op *OggPacket) int32

SynthesisTrackonly function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_trackonly.html

func VersionString Uses

func VersionString() string

VersionString function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_version_string.html

type Block Uses

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

func NewBlockRef Uses

func NewBlockRef(ref unsafe.Pointer) *Block

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.

func (*Block) Deref Uses

func (x *Block) 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 (*Block) Free Uses

func (x *Block) 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 (*Block) PassRef Uses

func (x *Block) PassRef() (*C.vorbis_block, *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 (Block) PassValue Uses

func (x Block) PassValue() (C.vorbis_block, *cgoAllocMap)

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*Block) Ref Uses

func (x *Block) Ref() *C.vorbis_block

Ref returns the underlying reference to C object or nil if struct is nil.

type Comment Uses

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

func NewCommentRef Uses

func NewCommentRef(ref unsafe.Pointer) *Comment

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.

func (*Comment) Deref Uses

func (x *Comment) 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 (*Comment) Free Uses

func (x *Comment) 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 (*Comment) PassRef Uses

func (x *Comment) PassRef() (*C.vorbis_comment, *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 (Comment) PassValue Uses

func (x Comment) PassValue() (C.vorbis_comment, *cgoAllocMap)

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*Comment) Ref Uses

func (x *Comment) Ref() *C.vorbis_comment

Ref returns the underlying reference to C object or nil if struct is nil.

type DspState Uses

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

func NewDspStateRef Uses

func NewDspStateRef(ref unsafe.Pointer) *DspState

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.

func (*DspState) Deref Uses

func (x *DspState) 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 (*DspState) Free Uses

func (x *DspState) 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 (*DspState) PassRef Uses

func (x *DspState) PassRef() (*C.vorbis_dsp_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 (DspState) PassValue Uses

func (x DspState) PassValue() (C.vorbis_dsp_state, *cgoAllocMap)

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*DspState) Ref Uses

func (x *DspState) Ref() *C.vorbis_dsp_state

Ref returns the underlying reference to C object or nil if struct is nil.

type Info Uses

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

func NewInfoRef Uses

func NewInfoRef(ref unsafe.Pointer) *Info

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.

func (*Info) Deref Uses

func (x *Info) 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 (*Info) Free Uses

func (x *Info) 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 (*Info) PassRef Uses

func (x *Info) PassRef() (*C.vorbis_info, *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 (Info) PassValue Uses

func (x Info) PassValue() (C.vorbis_info, *cgoAllocMap)

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*Info) Ref Uses

func (x *Info) Ref() *C.vorbis_info

Ref returns the underlying reference to C object or nil if struct is nil.

type OggInt16 Uses

type OggInt16 int16

OggInt16 type as declared in ogg/config_types.h:19

type OggInt32 Uses

type OggInt32 int32

OggInt32 type as declared in ogg/config_types.h:21

type OggInt64 Uses

type OggInt64 int64

OggInt64 type as declared in ogg/config_types.h:23

func OggPageGranulepos Uses

func OggPageGranulepos(og *OggPage) OggInt64

OggPageGranulepos function as declared in https://xiph.org/ogg/doc/libogg/ogg_page_granulepos.html

type OggIovec Uses

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

func NewOggIovecRef Uses

func NewOggIovecRef(ref unsafe.Pointer) *OggIovec

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.

func (*OggIovec) Deref Uses

func (x *OggIovec) 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 (*OggIovec) Free Uses

func (x *OggIovec) 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 (*OggIovec) PassRef Uses

func (x *OggIovec) PassRef() (*C.ogg_iovec_t, *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 (OggIovec) PassValue Uses

func (x OggIovec) PassValue() (C.ogg_iovec_t, *cgoAllocMap)

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*OggIovec) Ref Uses

func (x *OggIovec) Ref() *C.ogg_iovec_t

Ref returns the underlying reference to C object or nil if struct is nil.

type OggPacket Uses

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

func NewOggPacketRef Uses

func NewOggPacketRef(ref unsafe.Pointer) *OggPacket

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.

func (*OggPacket) Deref Uses

func (x *OggPacket) 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 (*OggPacket) Free Uses

func (x *OggPacket) 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 (*OggPacket) PassRef Uses

func (x *OggPacket) PassRef() (*C.ogg_packet, *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 (OggPacket) PassValue Uses

func (x OggPacket) PassValue() (C.ogg_packet, *cgoAllocMap)

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*OggPacket) Ref Uses

func (x *OggPacket) Ref() *C.ogg_packet

Ref returns the underlying reference to C object or nil if struct is nil.

type OggPage Uses

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

func NewOggPageRef Uses

func NewOggPageRef(ref unsafe.Pointer) *OggPage

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.

func (*OggPage) Deref Uses

func (x *OggPage) 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 (*OggPage) Free Uses

func (x *OggPage) 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 (*OggPage) PassRef Uses

func (x *OggPage) PassRef() (*C.ogg_page, *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 (OggPage) PassValue Uses

func (x OggPage) PassValue() (C.ogg_page, *cgoAllocMap)

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*OggPage) Ref Uses

func (x *OggPage) Ref() *C.ogg_page

Ref returns the underlying reference to C object or nil if struct is nil.

type OggStreamState Uses

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 Uses

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 (*OggStreamState) Deref Uses

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 (*OggStreamState) Free Uses

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 (*OggStreamState) PassRef Uses

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 (OggStreamState) PassValue Uses

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 (*OggStreamState) Ref Uses

func (x *OggStreamState) Ref() *C.ogg_stream_state

Ref returns the underlying reference to C object or nil if struct is nil.

type OggSyncState Uses

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 Uses

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 (*OggSyncState) Deref Uses

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 (*OggSyncState) Free Uses

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 (*OggSyncState) PassRef Uses

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 (OggSyncState) PassValue Uses

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 (*OggSyncState) Ref Uses

func (x *OggSyncState) Ref() *C.ogg_sync_state

Ref returns the underlying reference to C object or nil if struct is nil.

type OggUint16 Uses

type OggUint16 uint16

OggUint16 type as declared in ogg/config_types.h:20

type OggUint32 Uses

type OggUint32 uint32

OggUint32 type as declared in ogg/config_types.h:22

type RawString Uses

type RawString string

RawString reperesents a string backed by data on the C side.

func (RawString) Copy Uses

func (raw RawString) Copy() string

Copy returns a Go-managed copy of raw string.

Package vorbis imports 4 packages (graph) and is imported by 2 packages. Updated 2017-09-19. Refresh now. Tools for package owners.