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_CDPlayTracks
  • SDL_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