play_looped_midi(3)
β¨ 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms