pods::...udioCVT(3pm)
πΈ NAME πΈ
okay so this is the pods::...udioCVT(3pm) page from the User Contributed Perl Documentation, and the actual star is SDL::AudioCVT β Audio Conversion Structure. That's the whole name, and honestly it ate π
π¦ CATEGORY π¦
Core, Audio, Structure β lowkey the triple threat β¨
β¨ SYNOPSIS β¨
No synopsis lines here, bestie β the original is just the heading and then absolute silence, which is a mood π moving on!
π DESCRIPTION π
okay so SDL::AudioCVT is the structure used to convert audio data between different formats. A SDL::AudioCVT structure is created with the SDL::AudioCVT->build function, while the actual conversion is done by the SDL::Audio::convert_audio function β no cap, that's the whole setup π«Ά
π METHODS π
π new π
This constructor returns an empty SDL::AudioCVT structure β a fresh little blank slate, periodt β¨
π¦ build π¦
$cvt = SDL::AudioCVT->build( $src_format, $src_channels, $src_rate
$dst_format, $dst_channels, $dst_rate );
Before an SDL::AudioCVT structure can be used to convert audio data, it must be initialized with source and destination information β no skipping steps, bestie π
src_format and dst_format are the source and destination format of the conversion. (For information on audio formats, see SDL::AudioSpec.) π
src_channels and dst_channels are the number of channels in the source and destination formats. πΈ
Finally, src_rate and dst_rate are the frequency or samples-per-second of the source and destination formats. Once again, see SDL::AudioSpec β it's giving "check the spec, iykyk" π
Currently (SDL-1.2.11) only rate conversions of 2x and (1/2)x with x > 0 are done, nearing the requested rate conversion. That's the note β don't @ me π
See SDL::Audio::convert_audio.
π needed π
Set to one if the conversion is possible β that's the "can we do this?" flag β
π src_format π
Audio format of the source β where the audio is coming from, basically π¦
π dest_format π
Audio format of the destination β where it's going, bestie π
π rate_incr π
Rate conversion increment β yes, that's the whole line, short and slay π
π len π
Length of the original audio buffer in bytes π
π len_cvt π
Length of converted audio buffer in bytes (calculated) β¨
π len_mult π
buf must be len*len_mult bytes in size (calculated) β size your buf accordingly, no cap π«Ά
π len_ratio π
Final audio size is len*len_ratio π₯
π AUTHORS π
See AUTHORS in SDL.
That's the page, bestie πβ¨ β brought to you by perl v5.42.3, dated 2026-08-19. 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