.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL_mixer's wiki page for Mix_ReserveChannels: .\" https://wiki.libsdl.org/SDL_mixer/Mix_ReserveChannels .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision 3~git20240319~12fb85e+ds-1 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20Mix_ReserveChannels .\" SDL_mixer can be found at https://libsdl.org/projects/SDL_mixer .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH Mix_ReserveChannels 3 "SDL_mixer 3.0.0" "SDL_mixer" "SDL_mixer3 FUNCTIONS" .SH NAME Mix_ReserveChannels \- Reserve the first channels for the application\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3_mixer/SDL_mixer.h\(dq .PP .BI "int Mix_ReserveChannels(int num); .fi .SH DESCRIPTION While SDL_mixer will use up to the number of channels allocated by .BR Mix_AllocateChannels (), this sets channels aside that will not be available when calling .BR Mix_PlayChannel with a channel of -1 (play on the first unused channel)\[char46] In this case, SDL_mixer will treat reserved channels as "used" whether anything is playing on them at the moment or not\[char46] This is useful if you've budgeted some channels for dedicated audio and the rest are just used as they are available\[char46] Calling this function will set channels 0 to .BR n - 1 to be reserved\[char46] This will not change channel allocations\[char46] The number of reserved channels will be clamped to the current number allocated\[char46] By default, no channels are reserved\[char46] .SH FUNCTION PARAMETERS .TP .I num number of channels to reserve, starting at index zero\[char46] .SH RETURN VALUE Returns the number of reserved channels\[char46] .SH AVAILABILITY This function is available since SDL_mixer 3\[char46]0\[char46]0\[char46]