Esempio n. 1
0
// FMOD_RESULT F_API FMOD_Channel_SetChannelGroup       (FMOD_CHANNEL *channel, FMOD_CHANNELGROUP *channelgroup);
func (c *Channel) SetChannelGroup(group *ChannelGroup) error {
	var ferr C.FMOD_RESULT
	base.Thread(func() {
		ferr = C.FMOD_Channel_SetChannelGroup(c.channel, group.group)
	})
	return base.ResultToError(ferr)
}
Esempio n. 2
0
// Sets a channel to belong to a specified channel group. A channel group can contain many channels.
//
// channelgroup: Pointer to a ChannelGroup object.
//
// Setting a channel to a channel group removes it from any previous group, it does not allow sharing of channel groups.
func (c *Channel) SetChannelGroup(channelgroup ChannelGroup) error {
	res := C.FMOD_Channel_SetChannelGroup(c.cptr, channelgroup.cptr)
	return errs[res]
}