Ejemplo n.º 1
0
func FadeOutChannel(which, ms int) int {
	_which := (C.int)(which)
	_ms := (C.int)(ms)
	return int(C.Mix_FadeOutChannel(_which, _ms))
}
Ejemplo n.º 2
0
func (t *Sound) FadeOut(duration Double) {
	C.Mix_FadeOutChannel(C.int(t.channel), C.int(duration*1000.0))
}
Ejemplo n.º 3
0
// 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)))
}