// AnalysisHeaderout function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_analysis_headerout.html func AnalysisHeaderout(v *DspState, vc *Comment, op *OggPacket, opComm []OggPacket, opCode []OggPacket) int32 { cv, _ := v.PassRef() cvc, _ := vc.PassRef() cop, _ := op.PassRef() copComm, _ := unpackArgSOggPacket(opComm) copCode, _ := unpackArgSOggPacket(opCode) __ret := C.vorbis_analysis_headerout(cv, cvc, cop, copComm, copCode) packSOggPacket(opCode, copCode) packSOggPacket(opComm, copComm) __v := (int32)(__ret) return __v }
func AnalysisHeaderOut(v *DspState, vc *Comment, op, op_comm, op_code *ogg.Packet) int { cp := fromPacket(op) cp_comm := fromPacket(op_comm) cp_code := fromPacket(op_code) ret := int(C.vorbis_analysis_headerout((*C.vorbis_dsp_state)(v), (*C.vorbis_comment)(vc), cp, cp_comm, cp_code)) toPacket(op, cp) toPacket(op_comm, cp_comm) toPacket(op_code, cp_code) return ret }