79 Star 313 Fork 52

不在乎y/govcl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
bassinterface_amd64.go 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
不在乎y 提交于 2018-06-03 05:10 . Squashed commit of the following:
package bass
func ToUInt64(r1, r2 uintptr) uint64 {
return uint64(r1)
}
//func ToUInt64(r1, r2 uintptr) uint64 {
// ret := uint64(r2)
// ret = uint64(ret<<32) + uint64(r1)
// return ret
//}
//func UInt64To(val uint64) (uintptr, uintptr) {
// return uintptr(val), 0
//}
func BASS_StreamCreateFile(mem bool, file string, offset, length uint64, flags uint32) HSTREAM {
r, _, _ := _BASS_StreamCreateFile.Call(cbool(mem), cstr(file), uintptr(offset), uintptr(length), uintptr(flags))
return HSTREAM(r)
}
func BASS_ChannelSetPosition(handle HSTREAM, pos uint64, mode uint32) bool {
r, _, _ := _BASS_ChannelSetPosition.Call(uintptr(handle), uintptr(pos), uintptr(mode))
return r != 0
}
//func BASS_ChannelBytes2Seconds(handle HSTREAM, pos uint64) float64 {
// r, r2, _ := _BASS_ChannelBytes2Seconds.Call(uintptr(handle), uintptr(pos))
// var result float64
// *(*uint64)(unsafe.Pointer(&result)) = uint64(r)
// fmt.Println("result:", r, r2, result, ", pos:", pos)
// return result
//}
//func BASS_ChannelSeconds2Bytes(handle HSTREAM, pos float64) uint64 {
// r, _, _ := _BASS_ChannelSeconds2Bytes.Call(uintptr(handle), uintptr(pos))
// return uint64(r)
//}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ying32/govcl.git
git@gitee.com:ying32/govcl.git
ying32
govcl
govcl
v1.1.18

搜索帮助