stop_sample(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ stop_sample(3) ✨

okay bestie, welcome to the Allegro manual πŸ’– this one's about stop_sample, and it's giving "make it STOP" energy πŸ›‘


🌸 NAME 🌸

stop_sample β€” stops a sample from playing. Allegro game programming library. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

void stop_sample(const SAMPLE *spl);

πŸ’… DESCRIPTION πŸ’…

So like, this function stops a sample from playing, no cap. You need this one if you set a sample going in looped mode β€” otherwise it's just gonna vibe there forever and never leave the party 😭

And here's the tea: if there are several copies of the sample playing at once? It stops them all. Every single one. Gone. Periodt. πŸ‘‘

⚠️ but bestie, listen β€” you must still destroy the sample using destroy_sample(). Stopping it is not the same as cleaning it up, iykyk. Don't skip that step fr fr πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page, bestie, short and iconic 🌈 this was the Allegro manual, version 4.4.3, and yes we're still on stop_sample(3) β€” mwah, go stop some samples πŸ’‹πŸ’–

πŸ“¦ where this page comes from