func Allocate(max int) { if gMaxChannels != -1 { panic("multiple allocation") } C.Mix_AllocateChannels(C.int(max)) gMaxChannels = Channel(max) }
func AllocateChannels(numchans int) int { _numchans := (C.int)(numchans) return int(C.Mix_AllocateChannels(_numchans)) }
// 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))) }