Example #1
0
func Allocate(max int) {
	if gMaxChannels != -1 {
		panic("multiple allocation")
	}
	C.Mix_AllocateChannels(C.int(max))
	gMaxChannels = Channel(max)
}
Example #2
0
func AllocateChannels(numchans int) int {
	_numchans := (C.int)(numchans)
	return int(C.Mix_AllocateChannels(_numchans))
}
Example #3
0
// Dynamically change the number of channels managed by the mixer.
// If decreasing the number of channels, the upper channels are
// stopped. This function returns the new number of allocated channels.
func AllocateChannels(numchans int) (int) {
  return int(C.Mix_AllocateChannels(C.int(numchans)))
}