pods::...Groups(3pm)
π NAME π
okay so bestie, welcome to the pods::...Groups(3pm) page from User Contributed Perl Documentation π
it's literally all about Audio channel group functions β¨
π CATEGORY π
Mixer π
β¨ METHODS β¨
π reserve_channels
my $reserved = SDL::Mixer::Groups::reserve_channels( $num );
$num is the number of channels to reserve from default mixing. Zero removes all reservations.
Reserve $num channels from being used when playing samples when passing 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. Never fails, but 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 group id (any positive integer), or reset it's group to the default group by passing (-1). πΈ
Returns: True(1) on success. False(0) is returned when the channel specified is invalid.
π group_channels
my $grouped = SDL::Mixer::Groups::group_channels( $from_channel, $to_channel, $group );
Add a range of channels to group id (any positive integer), or reset their group to the default group by passing (-1). π¦
Returns: The number of affected channels.
π group_available
my $channel = SDL::Mixer::Groups::group_count( $group );
The page says "group_newer" returns the first available channel of this group. π
π group_count
my $channels = SDL::Mixer::Groups::group_count( $group );
The page says "group_newer" returns the number of channels in this group. π
π group_oldest
my $channel = SDL::Mixer::Groups::group_oldest( $group );
The page says "group_newer" returns the channel number which started to play at first. β
π group_newer
my $channel = SDL::Mixer::Groups::group_newer( $group );
The page says "group_newer" returns the channel number which started to play at last. π₯
π 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.
π AUTHORS π
See "AUTHORS" in SDL. π
byeee π«Ά this page is from perl v5.42.0, dated 2024-05-01, and it's pods::...Groups(3pm) β periodt π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms