exsample(3)

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

✨ exsample ✨

okay bestie, gather round, because we're talking about exsample from the Allegro manual β€” yes, that Allegro, the game programming library, and yes, this page is literally about playing digital samples πŸŽ§πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro.h>

Example exsample

like, that's it. that's the whole vibe. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so this program is a whole demo of how to play samples, and honestly? it's giving tutorial energy in the best way. 🫢

here's the deal: you have to run this example from the command line, and the first parameter you pass in has to be a WAV or VOC sound file. that's the file it's gonna play. no cap.

if the file loads successfully β€” and we're all rooting for it to load successfully πŸ™ β€” the sound will play in an infinite loop. forever. iconic behaviour, honestly. it just keeps going. πŸ”

and while it's playing, you're not just sitting there, you're the main character. so:

  • smash the left and right arrow keys to modify the panning of the sound 🎚️
  • smash the up and down arrow keys to modify the pitch 🎡

that's it! that's the whole program! tiny, adorable, and genuinely useful for learning how samples work. obsessed. πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, bestie, they're all part of the family:


no warnings, no bugs, no deprecated stuff on this one β€” it's just a lil demo doing lil demo things. go play with it 🧚

and that's the page, babe πŸŽ€ this was Allegro, version 4.4.3, serving exsample(3) realness. mwah. πŸ’œβœ¨πŸ“

πŸ“¦ where this page comes from