예제 #1
0
// Fades out music over the milliseconds specified.  Music is halted after
// the fade out is completed.
func FadeOutMusic(ms int) int { return int(C.Mix_FadeOutMusic(C.int(ms))) }
예제 #2
0
파일: sdl_mixer.go 프로젝트: flazz/go-sdl2
func FadeOutMusic(ms int) bool {
	_ms := (C.int)(ms)
	return int(C.Mix_FadeOutMusic(_ms)) == 0
}
예제 #3
0
func FadeOut(duration float64) {
	C.Mix_FadeOutMusic(C.int(duration * 1000.0))
}