コード例 #1
0
ファイル: channel.go プロジェクト: losinggeneration/fmod
// FMOD_RESULT F_API FMOD_Channel_Stop                  (FMOD_CHANNEL *channel);
func (c *Channel) Stop() error {
	var ferr C.FMOD_RESULT
	base.Thread(func() {
		ferr = C.FMOD_Channel_Stop(c.channel)
	})
	return base.ResultToError(ferr)
}
コード例 #2
0
ファイル: channel.go プロジェクト: theaidem/fmod
// Stops the channel (or all channels in the channel group) from playing. Makes it available for re-use by the priority system.
func (c *Channel) Stop() error {
	res := C.FMOD_Channel_Stop(c.cptr)
	return errs[res]
}