Beispiel #1
0
func av_audio_resample_init(trgch, srcch, trgrate, srcrate, trgfmt, srcfmt int) *ResampleContext {
	data := C.gmf_audio_resample_init(
		C.int(trgch),
		C.int(srcch),
		C.int(trgrate),
		C.int(srcrate),
		C.int(1),
		C.int(1),
		16, 10, 0)
	ctx := ResampleContext{ctx: data}
	return &ctx
}
func av_audio_resample_init(trgch, srcch, trgrate, srcrate, trgfmt, srcfmt int) *ResampleContext {
	data := C.gmf_audio_resample_init(
		C.int(trgch),
		C.int(srcch),
		C.int(trgrate),
		C.int(srcrate),
		C.int(1),
		C.int(1),
		16, 10, 0)
	//C.check_context(data)
	fmt.Printf("ReSampleContext Data =%p\n", data)
	//fmt.Printf("ReSampleContext inputchannels =%d\n",data.input_channels)
	ctx := ResampleContext{ctx: data}
	//fmt.Printf("ReSampleContext ctx= %d\n",ctx.ctx)

	return &ctx
}