Exemplo n.º 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
}
Exemplo n.º 2
0
Arquivo: vorbis.go Projeto: grd/vorbis
func GranuleTime(v *DspState, granulepos int64) float64 {
	return float64(C.vorbis_granule_time((*C.vorbis_dsp_state)(v), C.ogg_int64_t(granulepos)))
}