// \brief Get the current status of a music (stopped, paused, playing) // \param music Music object // \return Current status // sfSoundStatus sfMusic_getStatus(const sfMusic* music); func (self Music) GetStatus() SoundStatus { switch C.sfMusic_getStatus(self.Cref) { case 0: return Stopped case 1: return Paused case 2: return Playing } return UnknownSoundStatus }
func (m Music) Status() Status { return Status(C.sfMusic_getStatus(m.internal)) }