Пример #1
0
// FMOD_RESULT F_API FMOD_ChannelGroup_AddGroup         (FMOD_CHANNELGROUP *channelgroup, FMOD_CHANNELGROUP *group);
func (cg *ChannelGroup) AddGroup(group *ChannelGroup) error {
	var ferr C.FMOD_RESULT
	base.Thread(func() {
		ferr = C.FMOD_ChannelGroup_AddGroup(cg.group, group.group)
	})
	return base.ResultToError(ferr)
}
Пример #2
0
// Adds a channel group as a child of the current channel group.
//
// group: Channel group to add as a child.
//
// propagatedspclock: When a child group is added to a parent group, the clock values from the parent will be propogated down into the child.
func (c *ChannelGroup) AddGroup(group ChannelGroup, propagatedspclock bool) (DspConnection, error) {
	//FMOD_RESULT F_API FMOD_ChannelGroup_AddGroup(FMOD_CHANNELGROUP *channelgroup, FMOD_CHANNELGROUP *group, FMOD_BOOL propagatedspclock, FMOD_DSPCONNECTION **connection);
	var connection DspConnection
	res := C.FMOD_ChannelGroup_AddGroup(c.cptr, group.cptr, getBool(propagatedspclock), &connection.cptr)
	return connection, errs[res]
}