コード例 #1
0
ファイル: sdl_mixer.go プロジェクト: flazz/go-sdl2
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)))
}