Пример #1
0
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
// 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)
}