예제 #1
0
파일: sdl_mixer.go 프로젝트: flazz/go-sdl2
func FadeOutChannel(which, ms int) int {
	_which := (C.int)(which)
	_ms := (C.int)(ms)
	return int(C.Mix_FadeOutChannel(_which, _ms))
}
예제 #2
0
func (t *Sound) FadeOut(duration Double) {
	C.Mix_FadeOutChannel(C.int(t.channel), C.int(duration*1000.0))
}
예제 #3
0
파일: mixer.go 프로젝트: beoran/fungo
// Halt a channel, fading it out progressively till it's silent
// The ms parameter indicates the number of milliseconds the fading
// will take.
// Fade out a particular channel
func FadeOutChannel(channel, ms int) (int) { 
  return int(C.Mix_FadeOutChannel(C.int(channel), C.int(ms)))
}