SDL_CDtrack(3)
SDL_CDtrack πΏβ¨
okay bestie, welcome to the SDL API Reference, and today's main character is SDL_CDtrack β literally the lil struct that holds the tea on every single track on a CD. yes, the whole manual name is SDL API Reference, we're in the official docs, act like it π
πΈ NAME πΈ
SDL_CDtrack β CD Track Information Structure
like, it's a structure. it tracks info. about tracks. iconic behavior tbh.
π STRUCTURE DEFINITION π
typedef struct{
Uint8 id;
Uint8 type;
Uint32 length;
Uint32 offset;
} SDL_CDtrack;
copy that exactly, do not freestyle it, i am begging π«Ά
π STRUCTURE DATA π
okay so here's what's inside this little guy:
idβ the track number, ranging from0-99. that's it. that's the id.typeβ eitherSDL_AUDIO_TRACKorSDL_DATA_TRACK. vibe check: is it music or is it data?lengthβ how long this track is, measured in frames. frames, bestie, not seconds. we'll get there.offsetβ the frame offset pointing to the very beginning of this track. like, where it starts.
π¦ DESCRIPTION π¦
SDL_CDtrack stores data on each track on a CD, and ngl its fields should be pretty self explainatory. it's a member of the SDL_CD structure, so it does not roll alone β it's part of the squad π
Note: π¨ Frames can be converted to standard timings. There areCD_FPSframes per second, soSDL_CDtrack.length/CD_FPS=length_in_seconds.math is mathing, that's the conversion, use it π
π SEE ALSO π
SDL_CD
k that's the whole page, no notes, you ate this. this was the SDL page, last touched Tue 11 Sep 2001, 22:59 (yes, 2001, we're reading historical documents fr fr) β mwah, go read SDL_CD next, love u bye ππ
π¦ where this page comes from
- debian bookworm: libsdl1.2-dev 1.2.15+dfsg2-8 Β· LGPL-2.1-or-later
- nixos 26.05: SDL_sixel 0-unstable-2016-02-06
- nixpkgs unstable: SDL_sixel 0-unstable-2016-02-06
- ubuntu jammy: libsdl1.2-dev 1.2.15+dfsg2-6 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms