Beispiel #1
0
// FMOD_RESULT F_API FMOD_ChannelGroup_SetMute          (FMOD_CHANNELGROUP *channelgroup, FMOD_BOOL mute);
func (cg *ChannelGroup) SetMute(mute bool) error {
	var ferr C.FMOD_RESULT
	base.Thread(func() {
		ferr = C.FMOD_ChannelGroup_SetMute(cg.group, makeFmodBool(mute))
	})
	return base.ResultToError(ferr)
}
Beispiel #2
0
// Sets the mute state effectively silencing it or returning it to its normal volume.
//
// mute: Mute state, true = mute (silent), false = normal volume.
//
// Each channel and channel group has its own mute state, muting a channel group will mute all child channels but will not affect their individual setting.
// Calling "ChannelGroup.Mute" will always return the value you set.
func (c *ChannelGroup) SetMute(mute bool) error {
	res := C.FMOD_ChannelGroup_SetMute(c.cptr, getBool(mute))
	return errs[res]
}