SDL_CDPlay(3)
β¨ SDL_CDPlay β¨
okay bestie, so this is a page from the SDL API Reference β yes, that SDL, the one that makes games go brrr β and today's main character is a little function called SDL_CDPlay. πΏπ
π NAME π
SDL_CDPlay β play a CD, bestie. that's it. that's the whole vibe. π΅
πΈ SYNOPSIS πΈ
#include "SDL.h"
int SDL_CDPlay(SDL_CD *cdrom, int start, int length);
like, you gotta pull in "SDL.h" first, obviously, and then you can call it. π«Ά
π DESCRIPTION π
So here's the tea: SDL_CDPlay plays the given cdrom, starting at frame start for length frames. πΆ
That's literally it. You hand it a CD, you tell it where to start, you tell it how long to go, and it does the thing. no cap. β¨
π¦ RETURN VALUES π¦
0β slay, it worked, success, we ate. π-1β an error happened. π not the vibe.
π SEE ALSO π
SDL_CDPlayTracksSDL_CDStop
go read those too, iykyk. ππ
ok that's the whole page bestie, go make some noise π§π₯
this one came from the SDL crew, dated Tue 11 Sep 2001, 22:58 β yeah it's an oldie but a goodie, vintage icon behavior fr fr. π°οΈπ
π¦ 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