Exemplo n.º 1
0
Arquivo: vorbis.go Projeto: grd/vorbis
func SynthesisHalfrate(v *Info, flag bool) int {
	var cflag C.int
	if flag == true {
		cflag = 1
	}
	return int(C.vorbis_synthesis_halfrate((*C.vorbis_info)(v), cflag))
}
Exemplo n.º 2
0
// SynthesisHalfrate function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_halfrate.html
func SynthesisHalfrate(v *Info, flag int32) int32 {
	cv, _ := v.PassRef()
	cflag, _ := (C.int)(flag), cgoAllocsUnknown
	__ret := C.vorbis_synthesis_halfrate(cv, cflag)
	__v := (int32)(__ret)
	return __v
}