play_looped_midi(3)

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

✨ NAME ✨

okay so bestie, welcome to play_looped_midi(3) from the Allegro manual πŸ’– This function is play_looped_midi β€” and it starts playing a MIDI file with a user-defined loop position. It's part of the Allegro game programming library, periodt. πŸŽ€

🎧 SYNOPSIS 🎧

#include <allegro.h>

int play_looped_midi(MIDI *midi, int loop_start, int loop_end);

πŸŒ€ DESCRIPTION πŸŒ€

So like, this is the moment where you start playing a MIDI file but with your own custom loop position. Main character energy fr fr. πŸ’…

When the player reaches the loop end position or the end of the file β€” and yes, loop_end may be -1 to only loop at EOF β€” it will wind back to the loop start point. It's giving rewind realness. πŸ”

Both positions are specified in the same beat number format as the midi_pos variable. No cap, same format, same vibe. 🎡

πŸ” RETURN VALUE πŸ”

The return value has the same meaning as that of play_midi(): non-zero if an error occurs, zero otherwise. So if you get non-zero, something said "not today" 😭; zero means we ate and left no crumbs. πŸ‘‘

πŸ‘€ SEE ALSO πŸ‘€

Go peek at those when you're done, bestie. iykyk. πŸ¦‹


Sign-off time: this page is from the Allegro manual, version 4.4.3, and the page name is play_looped_midi(3). The footer didn't give us a date, so no date to spill β€” just that version energy. Bye bestie πŸ’œβœ¨

πŸ“¦ where this page comes from