SDL_CDStop(3)

✨ SDL_CDStop ✨

okay bestie, welcome to the SDL API Reference πŸ’– this lil page is literally all about SDL_CDStop β€” the function that makes a CD-ROM stop. that's it. that's the whole vibe. πŸŽ€


🌸 NAME 🌸

SDL_CDStop β€” stops a CDROM πŸ›‘

no cap, that's the entire job description. she's a one-trick pony and she ATE. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include "SDL.h"

int SDL_CDStop(SDL_CD *cdrom);

so you gotta pull in SDL.h first, then you call her with a pointer to your SDL_CD and she does the thing. periodt. ✨


πŸ’œ DESCRIPTION πŸ’œ

Stops play on the given cdrom. 🎡➑️⏹️

that's it. that's the function. you hand her the cdrom you want silenced and she silences it. the way that she just... stops the play. iconic behaviour honestly. 🫢


🌈 RETURN VALUE 🌈

  • 0 β€” slay, it worked, success πŸ’–
  • -1 β€” nope, error, something went wrong 😭

so like, check the return value, bestie. don't just call her and walk away. πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

  • SDL_CDPlay 🌸

if you wanna start the music instead of stopping it, that's your girl. iykyk. πŸ”₯


and that's the whole page!! 🧚 go forth and stop some CDs, you absolute main character. πŸ’…βœ¨

this gem is from the SDL crew, dated Tue 11 Sep 2001, 22:59, and she lives in the SDL_CDStop(3) section of the manual. mwah. πŸ’‹πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from