예제 #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)
}
예제 #2
0
파일: channel.go 프로젝트: theaidem/fmod
// 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]
}