本文整理汇总了Golang中github.com/losinggeneration/hge/sound.Channel类的典型用法代码示例。如果您正苦于以下问题:Golang Channel类的具体用法?Golang Channel怎么用?Golang Channel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Channel类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: Channel_SlideTo
func (h *HGE) Channel_SlideTo(chn sound.Channel, time float64, a ...interface{}) {
chn.SlideTo(time, a...)
}
示例2: Channel_IsSliding
func (h *HGE) Channel_IsSliding(chn sound.Channel) bool {
return chn.IsSliding()
}
示例3: Channel_GetPos
func (h *HGE) Channel_GetPos(chn sound.Channel) float64 {
return chn.Pos()
}
示例4: Channel_SetPos
func (h *HGE) Channel_SetPos(chn sound.Channel, seconds float64) {
chn.SetPos(seconds)
}
示例5: Channel_Stop
func (h *HGE) Channel_Stop(chn sound.Channel) {
chn.Stop()
}
示例6: Channel_GetLength
func (h *HGE) Channel_GetLength(chn sound.Channel) float64 {
return chn.Len()
}
示例7: Channel_Resume
func (h *HGE) Channel_Resume(chn sound.Channel) {
chn.Resume()
}
示例8: Channel_Pause
func (h *HGE) Channel_Pause(chn sound.Channel) {
chn.Pause()
}
示例9: Channel_SetPitch
func (h *HGE) Channel_SetPitch(chn sound.Channel, pitch float64) {
chn.SetPitch(pitch)
}
示例10: Channel_SetVolume
func (h *HGE) Channel_SetVolume(chn sound.Channel, volume int) {
chn.SetVolume(volume)
}
示例11: Channel_SetPanning
func (h *HGE) Channel_SetPanning(chn sound.Channel, pan int) {
chn.SetPanning(pan)
}