本文整理汇总了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()
}