// FMOD_RESULT F_API FMOD_ChannelGroup_SetPitch (FMOD_CHANNELGROUP *channelgroup, float pitch); func (cg *ChannelGroup) SetPitch(pitch float64) error { var ferr C.FMOD_RESULT base.Thread(func() { ferr = C.FMOD_ChannelGroup_SetPitch(cg.group, C.float(pitch)) }) return base.ResultToError(ferr) }
// Sets the pitch value. // // pitch: Pitch value, 0.5 = half pitch, 2.0 = double pitch, etc default = 1.0. // // This function scales existing frequency values by the pitch. func (c *ChannelGroup) SetPitch(pitch float64) error { res := C.FMOD_ChannelGroup_SetPitch(c.cptr, C.float(pitch)) return errs[res] }