示例#1
0
func Playing(channel int) bool {
	_channel := (C.int)(channel)
	return int(C.Mix_Playing(_channel)) > 0
}
示例#2
0
// Playing (https://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer_38.html)
func Playing(channel int) int {
	_channel := (C.int)(channel)
	return int(C.Mix_Playing(_channel))
}
示例#3
0
func Playing(c Channel) bool { return C.Mix_Playing(C.int(c)) == 1 }
示例#4
0
文件: chunks.go 项目: kurrik/Go-SDL
//Checks to see if the specified channel is currently playing
//Returns: 1 if the channel is currently playing or 0 if not playing
func (c *Chunk) IsPlaying(channel int) int {
	return int(C.Mix_Playing(C.int(channel)))
}
示例#5
0
文件: mixer.go 项目: beoran/fungo
// Check the status of a specific channel.
// If the specified channel is -1, check all channels.
func PlayingChannel(channel int) (int) { 
  return int(C.Mix_Playing(C.int(channel)))
}