Example #1
0
// FMOD_RESULT F_API FMOD_ChannelGroup_Release          (FMOD_CHANNELGROUP *channelgroup);
// TODO: Bind this to a finalizer
func (cg *ChannelGroup) Release() error {
	var ferr C.FMOD_RESULT
	base.Thread(func() {
		ferr = C.FMOD_ChannelGroup_Release(cg.group)
	})
	cg.group = nil
	return base.ResultToError(ferr)
}
Example #2
0
// Frees a channel group.
//
// All channels (and groups) assigned to this group are returned back to the master channel group owned by the System object (see "System.MasterChannelGroup").
func (c *ChannelGroup) Release() error {
	res := C.FMOD_ChannelGroup_Release(c.cptr)
	return errs[res]
}