Prevent channels from being used in default group
The number of channels reserved. Never fails, but may return less channels than you ask for, depending on the number of channels previously allocated.
The following functions are affected by this setting:
Binds to C-function in SDL_mixer.h
int Mix_ReserveChannels(int num)
// reserve the first 8 mixing channels int reserved_count; reserved_count=Mix_ReserveChannels(8); if(reserved_count!=8) { printf("reserved %d channels from default mixing.\n",reserved_count); printf("8 channels were not reserved!\n"); // this might be a critical error... }
SdlMixer Class | Tao.Sdl Namespace | Mix_AllocateChannels