Пример #1
0
// CommentQueryCount function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_comment_query_count.html
func CommentQueryCount(vc *Comment, tag string) int32 {
	cvc, _ := vc.PassRef()
	ctag, _ := unpackPCharString(tag)
	__ret := C.vorbis_comment_query_count(cvc, ctag)
	__v := (int32)(__ret)
	return __v
}
Пример #2
0
func (p *Comment) QueryCount(tag string) int {
	cTag := C.CString(tag)
	ret := C.vorbis_comment_query_count((*C.vorbis_comment)(p), cTag)
	C.free(unsafe.Pointer(cTag))
	return int(ret)
}