コード例 #1
0
ファイル: audio.go プロジェクト: num5/steven
func (m Music) Play() {
	C.sfMusic_play(m.internal)
}
コード例 #2
0
ファイル: aud-music.go プロジェクト: drhodes/go-sfml
// \brief Start or resume playing a music
// This function starts the music if it was stopped, resumes
// it if it was paused, and restarts it from beginning if it
// was it already playing.
// This function uses its own thread so that it doesn't block
// the rest of the program while the music is played.
// \param music Music object
// void sfMusic_play(sfMusic* music);
func (self Music) Play() {
	C.sfMusic_play(self.Cref)
}