Пример #1
0
// GranuleTime function as declared in https://xiph.org/vorbis/doc/libvorbis/vorbis_granule_time.html
func GranuleTime(v *DspState, granulepos OggInt64) float64 {
	cv, _ := v.PassRef()
	cgranulepos, _ := (C.ogg_int64_t)(granulepos), cgoAllocsUnknown
	__ret := C.vorbis_granule_time(cv, cgranulepos)
	__v := (float64)(__ret)
	return __v
}
Пример #2
0
func GranuleTime(v *DspState, granulepos int64) float64 {
	return float64(C.vorbis_granule_time((*C.vorbis_dsp_state)(v), C.ogg_int64_t(granulepos)))
}