pods::...Groups(3pm)
πΈ NAME πΈ
okay bestie, welcome to pods::...Groups(3pm) β a User Contributed Perl Documentation page, no cap. The actual title is SDL::Mixer::Groups - Audio channel group functions, and it's giving audio-channel-group main character energy. πβ¨
π CATEGORY π
Mixer β that's the vibe check, periodt. ποΈπ¦
π METHODS π
β¨ reserve_channels β¨
my $reserved = SDL::Mixer::Groups::reserve_channels( $num );
So $num is literally the number of channels you're reserving from default mixing. Zero removes all reservations. πΈ
The way this works: reserve $num channels so they won't be used when playing samples if you pass in -1 as a channel number to playback functions. The channels are reserved starting from channel 0 to $num-1. Passing in zero will unreserve all channels. Normally SDL_mixer starts without any channels reserved. π«Ά
The following functions are affected by this setting:
SDL::Mixer::Channels::play_channelSDL::Mixer::Channels::play_channel_timedSDL::Mixer::Channels::fade_in_channelSDL::Mixer::Channels::fade_in_channel_timed
Returns: the number of channels reserved. It never fails, but it may return less channels than you ask for, depending on the number of channels previously allocated (see SDL::Mixer::Channels::allocate_channels). π
β¨ group_channel β¨
my $grouped = SDL::Mixer::Groups::group_channel( $channel, $group );
Add a channel to a group id (any positive integer), or reset its group to the default group by passing (-1). π
Returns: True(1) on success. False(0) is returned when the channel specified is invalid. Ngl, that's a clean little true/false moment. π
β¨ group_channels β¨
my $grouped = SDL::Mixer::Groups::group_channels( $from_channel, $to_channel, $group );
Add a range of channels to a group id (any positive integer), or reset their group to the default group by passing (-1). β¨
Returns: the number of affected channels. Slay. π¦
β¨ group_available β¨
my $channel = SDL::Mixer::Groups::group_count( $group );
okay so the description literally says: "group_newer" returns the first available channel of this group. Bestie, I'm not fixing the source β I'm just reporting exactly what's on the page. π
β¨ group_count β¨
my $channels = SDL::Mixer::Groups::group_count( $group );
The description literally says: "group_newer" returns the number of channels in this group. Same quoted-function-name situation, fr fr. π
β¨ group_oldest β¨
my $channel = SDL::Mixer::Groups::group_oldest( $group );
The description literally says: "group_newer" returns the channel number which started to play at first. π
β¨ group_newer β¨
my $channel = SDL::Mixer::Groups::group_newer( $group );
The description literally says: "group_newer" returns the channel number which started to play at last. Iconic consistency, lowkey. π
β¨ fade_out_group β¨
SDL::Mixer::Groups::fade_out_group( $group, $ms );
Fades out the channels by the given group id. The fade-out-time is specified by $ms. π§
Returns: the number of affected channels. π
β¨ halt_group β¨
SDL::Mixer::Groups::hals_group( $group );
Halts the channels by the given group id. π
Returns 0.
Heads up, bestie: the synopsis above literally saysSDL::Mixer::Groups::hals_group( $group );β yes,hals. I'm keeping it exactly as the page has it. Not me being tempted to "fix" it. ππ
π«Ά AUTHORS π«Ά
It says, literally: See "AUTHORS" in SDL. iykyk. π
okay that's the whole page, bestie π this little number is from perl v5.42.3, dated 2026-08-19, and it's the pods::...Groups(3pm) page β mwah! πβ¨
π¦ where this page comes from
- ubuntu stonking: libsdl-perl 2.548-6build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms