Sound_AudioInfo(3)
π NAME π
Sound_AudioInfo β literally the whole vibe report on what format an existing sample is in π
So yeah bestie, this is Sound_AudioInfo(3) from the Library Functions Manual, and it's here to tell you everything about a sample's format. Buckle up π¦
β¨ SYNOPSIS β¨
First things first, you gotta pull in the header, no cap:
#include <SDL_sound.h>
πΈ Data Fields πΈ
Here's the little squad of fields it's carrying around, and yes we're listing every single one π
Uint16 formatβ the data format, obviouslyUint8 channelsβ how many channels we're working withUint32 rateβ the sample rate, the goods
π₯ Detailed Description π₯
Okay so this struct is information about an existing sample's format. That's it, that's the whole job π
These are genuinely the basics of a decoded sample's data structure, fr fr:
- the data format β see
AUDIO_U8and friends over inSDL_audio.h(iykyk) - the number of channels
- the sample rate
And likeβ¦ if you need more explanation than that?? You should stop developing sound code right now. π Not even joking, that's straight from the source. Put the compiler down, go touch grass π±
See also π
Sound_SampleNewSound_SampleNewFromFile
π§ Field Documentation π§
π Uint8 Sound_AudioInfo::channels
Number of sound channels, bestie. 1 == mono, 2 == stereo. That's the whole math π«
π¦ Uint16 Sound_AudioInfo::format
It's the equivalent of SDL_AudioSpec.format. Same energy, different struct β
π Uint32 Sound_AudioInfo::rate
Sample rate β aka the frequency of sample points per second. She's ticking away, keeping time, main character energy β±οΈπ
π Author π
Generated automatically by Doxygen for SDL_sound from the source code. So nobody actually wrote this by hand, the robot did it ππ
And that's the whole page, no crumbs left behind π Signing off with the deets: this was SDL_sound, Version 1.0.1, living its life on the SDL_sound manual page β Sound_AudioInfo(3). Slay, stay decoded, and hydrate π
πβ¨
π¦ where this page comes from
- fedora 43: SDL_sound-devel 1.0.3-42.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: SDL_sound-devel 1.0.3-42.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: SDL_sound-devel 1.0.3-44.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: SDL_sound-devel 1.0.3-44.fc44 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms