Ejemplo n.º 1
0
func SetPosition(pos float64) {
	t := C.Mix_GetMusicType(nil)
	if t == C.MUS_MP3 {
		Rewind()
	}
	C.Mix_SetMusicPosition(C.double(pos))
}
Ejemplo n.º 2
0
func (music *Music) Type() MusicType {
	_music := (*C.Mix_Music)(unsafe.Pointer(music))
	return (MusicType)(C.Mix_GetMusicType(_music))
}
Ejemplo n.º 3
0
// Returns the type of the music.
func (m *Music) GetMusicType() int { return int(C.Mix_GetMusicType(m.cmusic)) }
Ejemplo n.º 4
0
// Returns the type of the currently playing music.
func GetMusicType() int { return int(C.Mix_GetMusicType(nil)) }
Ejemplo n.º 5
0
// Find out the music format of a mixer music, or the currently playing
// music, if 'music' is NULL.
func MusicType(music * C.Mix_Music) (Mix_MusicType) {
  return Mix_MusicType(C.Mix_GetMusicType(music)) 
}