示例#1
0
文件: vorbis.go 项目: grd/vorbis
func (p *Comment) Add(comment string) {
	cComment := C.CString(comment)
	C.vorbis_comment_add((*C.vorbis_comment)(p), cComment)
	C.free(unsafe.Pointer(cComment))
}
示例#2
0
文件: vorbis.go 项目: xlab/vorbis-go
// CommentAdd function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_add.html
func CommentAdd(vc *Comment, comment string) {
	cvc, _ := vc.PassRef()
	ccomment, _ := unpackPCharString(comment)
	C.vorbis_comment_add(cvc, ccomment)
}