示例#1
0
func ReserveChannels(num int) int {
	_num := (C.int)(num)
	return (int)(C.Mix_ReserveChannels(_num))
}
示例#2
0
文件: mixer.go 项目: beoran/fungo
// Reserve the first channels (0 -> n-1) for the application, i.e. 
// don't allocate them dynamically to the next sample if requested 
// with a -1 value below.  Returns the number of reserved channels.
func ReserveChannels(num int) (int) { 
  return int(C.Mix_ReserveChannels(C.int(num)))
}