pods::...xChunk(3pm)

πŸ“¦ version 2.548, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

SDL::Mixer::MixChunk β€” SDL Bindings for structure SDL_MixChunk.

okay so this page is literally pods::...xChunk(3pm) from the User Contributed Perl Documentation, and it's giving β€œtiny reference page for a mixer chunk” energy ✨

πŸŽ€ CATEGORY πŸŽ€

Mixer, Structure. that's the whole category vibe, bestie 🫢

🌈 SYNOPSIS 🌈

the setup is, and I cannot stress this enough, exactly this:

use SDL;
use SDL::Mixer::MixChunk;

my $mix_chunk = SDL::Mixer::Music::load_WAV('sample.wav');

printf("length of audio data is %d bytes\n", $mix_chunk->alen);
printf("volume is %d\n",                     $mix_chunk->volume);

πŸ¦‹ DESCRIPTION πŸ¦‹

Stores audio data in memory. that's it, that's the main character behavior πŸŽ§πŸ’…

Note: It's a bad idea to free a chunk that is still being played... not me warning you bestie 😭🚫

🌸 METHODS 🌸

✨ alen

length of audio data in bytes. yes ma'am, bytes πŸ“

πŸ”₯ volume

Per-sample volume, 0-128 (normally MIX_MAX_VOLUME after loading). screaming, crying, perfect volume range 🎚️✨

πŸ‘‘ AUTHORS πŸ‘‘

See "AUTHORS" in SDL for the author lore, iykyk πŸ“œπŸ’–


With love from the perl v5.42.0 era, dated 2024-05-01, on the pods::...xChunk(3pm) page β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from