예제 #1
0
파일: sdl_mixer.go 프로젝트: flazz/go-sdl2
func ExpireChannel(channel, ticks int) int {
	_channel := (C.int)(channel)
	_ticks := (C.int)(ticks)
	return int(C.Mix_ExpireChannel(_channel, _ticks))
}
예제 #2
0
파일: mixer.go 프로젝트: beoran/fungo
// Change the expiration delay for a particular channel.
// The sample will stop playing after the 'ticks' milliseconds have elapsed,
// or remove the expiration if 'ticks' is -1
func ExpireChannel(channel, ticks int) (int) {
  return int(C.Mix_ExpireChannel(C.int(channel), C.int(ticks)))
}