Exemplo n.º 1
0
// FMOD_RESULT F_API FMOD_Channel_SetPaused             (FMOD_CHANNEL *channel, FMOD_BOOL paused);
func (c *Channel) SetPaused(paused bool) error {
	var ferr C.FMOD_RESULT
	base.Thread(func() {
		ferr = C.FMOD_Channel_SetPaused(c.channel, makeFmodBool(paused))
	})
	return base.ResultToError(ferr)
}
Exemplo n.º 2
0
// Sets the paused state.
// Each channel and channel group has its own paused state, pausing a channel group will pause all contained channels but will not affect their individual setting.
func (c *Channel) SetPaused(paused bool) error {
	res := C.FMOD_Channel_SetPaused(c.cptr, getBool(paused))
	return errs[res]
}