示例#1
0
文件: vorbis.go 项目: xlab/vorbis-go
// SynthesisRead function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_synthesis_read.html
func SynthesisRead(v *DspState, samples int32) int32 {
	cv, _ := v.PassRef()
	csamples, _ := (C.int)(samples), cgoAllocsUnknown
	__ret := C.vorbis_synthesis_read(cv, csamples)
	__v := (int32)(__ret)
	return __v
}
示例#2
0
文件: vorbis.go 项目: grd/vorbis
func SynthesisRead(v *DspState, samples int) int {
	return int(C.vorbis_synthesis_read((*C.vorbis_dsp_state)(v), C.int(samples)))
}