本文整理匯總了Golang中github.com/losinggeneration/hge/sound.Music類的典型用法代碼示例。如果您正苦於以下問題:Golang Music類的具體用法?Golang Music怎麽用?Golang Music使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了Music類的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: Music_SetChannelVolume
func (h *HGE) Music_SetChannelVolume(music *sound.Music, channel, volume int) {
music.SetChannelVolume(channel, volume)
}
示例2: Music_GetChannelVolume
func (h *HGE) Music_GetChannelVolume(music *sound.Music, channel int) int {
return music.ChannelVolume(channel)
}
示例3: Music_SetInstrVolume
func (h *HGE) Music_SetInstrVolume(music *sound.Music, instr int, volume int) {
music.SetInstrVolume(instr, volume)
}
示例4: Music_GetInstrVolume
func (h *HGE) Music_GetInstrVolume(music *sound.Music, instr int) int {
return music.InstrVolume(instr)
}
示例5: Music_SetPos
func (h *HGE) Music_SetPos(music *sound.Music, order, row int) {
music.SetPos(order, row)
}
示例6: Music_GetPos
func (h *HGE) Music_GetPos(music *sound.Music) (order, row int, ok bool) {
return music.Pos()
}
示例7: Music_GetLength
func (h *HGE) Music_GetLength(music *sound.Music) int {
return music.Len()
}
示例8: Music_GetAmplification
func (h *HGE) Music_GetAmplification(music *sound.Music) int {
return music.Amplification()
}
示例9: Music_SetAmplification
func (h *HGE) Music_SetAmplification(music *sound.Music, ampl int) {
music.SetAmplification(ampl)
}
示例10: Music_Play
func (h *HGE) Music_Play(music *sound.Music, loop bool, a ...interface{}) sound.Channel {
return music.Play(loop, a...)
}
示例11: Music_Free
func (h *HGE) Music_Free(music *sound.Music) {
music.Free()
}