Golang C.Mix_GetMusicType类(方法)实例源码

下面列出了Golang C.Mix_GetMusicType 类(方法)源码代码实例,从而了解它的用法。

作者:swanteschol    项目:codin   
func SetPosition(pos float64) {
	t := C.Mix_GetMusicType(nil)
	if t == C.MUS_MP3 {
		Rewind()
	}
	C.Mix_SetMusicPosition(C.double(pos))
}

作者:flaz    项目:go-sdl   
func (music *Music) Type() MusicType {
	_music := (*C.Mix_Music)(unsafe.Pointer(music))
	return (MusicType)(C.Mix_GetMusicType(_music))
}

作者:paul-lalond    项目:Go-SD   
// Returns the type of the music.
func (m *Music) GetMusicType() int { return int(C.Mix_GetMusicType(m.cmusic)) }

作者:beora    项目:fung   
// 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)) 
}


问题


面经


文章

微信
公众号

扫码关注公众号