Exemple #1
0
// \brief Get the current status of a sound (stopped, paused, playing)
// \param sound Sound object
// \return Current status
// sfSoundStatus sfSound_getStatus(const sfSound* sound);
func (self Sound) Getstatus() SoundStatus {
	switch C.sfSound_getStatus(self.Cref) {
	case 0:
		return Stopped
	case 1:
		return Paused
	case 2:
		return Playing
	}
	return UnknownSoundStatus
}
Exemple #2
0
func (s Sound) Status() Status {
	return Status(C.sfSound_getStatus(s.internal))
}