コード例 #1
0
ファイル: sdl_mixer.go プロジェクト: flazz/go-sdl2
func Playing(channel int) bool {
	_channel := (C.int)(channel)
	return int(C.Mix_Playing(_channel)) > 0
}
コード例 #2
0
ファイル: sdl_mixer.go プロジェクト: 4gophers/go-sdl2
// 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
ファイル: channel.go プロジェクト: swantescholz/coding
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)))
}