stop_midi(3alleg4)

πŸ’– stop_midi β€” the "okay bestie, music off" function πŸ’–

So like, this is a page from the Allegro manual (yes, the Allegro game programming library, the one from 3alleg4), and today we're talking about stop_midi. Buckle up, it's a short one but it ate. πŸ’…


✨ NAME ✨

stop_midi β€” Stops whatever music is currently playing. Allegro game programming library. 🎡🚫


🌸 SYNOPSIS 🌸

#include <allegro.h>

void stop_midi();

That's it. That's the whole signature. No arguments, no return value, just vibes. πŸ¦‹


πŸ‘‘ DESCRIPTION πŸ‘‘

Okay so picture this: you've got music playing. MIDI music. It's going, it's doing its thing, it's the main character of your soundscape. And now you want it to stop. That's literally it. stop_midi stops whatever music is currently playing. Periodt. πŸŽ€

And here's the tea β€” this function is the same thing as calling:

play_midi(NULL, FALSE)

Like, identical. Same energy. Not me finding out they're twins πŸ˜­πŸ’€


🫢 SEE ALSO 🫢

  • play_midi(3alleg4) β€” the one that actually starts the music (and the secret identity of this one πŸ‘€)
  • midi_pause(3alleg4) β€” for when you want it to take a lil nap instead of fully leaving 🌈

ngl bestie, if you ever forget what stop_midi does, just remember: it's play_midi(NULL, FALSE) in a cuter outfit. iykyk πŸ’œ

Okie that's the whole page!! This lil cutie comes to you from Allegro, version 4.4.3, and yes, the manual name up top is stop_midi(3alleg4) β€” that's the whole header, mwah. Stay slaying, go make some music play and then make it not play, you icon. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’