AuSoundPla...usFromFile(3)

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

πŸ’– AuSoundPla...usFromFile(3) πŸ’–

okay bestie, welcome to the Library Functions Manual section for this one β€” yes the page name is literally truncated with ... in the middle, that's just how it is, we don't ask questions, we just vibe πŸ¦‹


✨ NAME ✨

AuSoundPlaySynchronousFromFile β€” play a file. that's it. that's the whole job. and she does it synchronously, meaning she stays with you the whole time, no ghosting πŸ’…


🌸 SYNOPSIS 🌸

#include <audio/audiolib.h>
#include <audio/soundlib.h>

AuBool AuSoundPlaySynchronousFromFile(server, filename, volume)
    AuServer *server;
    char *filename;
    int volume;

like look at her. two includes, one function, three args. main character energy fr fr πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • server β€” the connection to the audio server. your lil hotline to the sound department πŸ“ž
  • filename β€” the name of the audio data file. the actual file you wanna hear, name and all 🎡
  • volume β€” the volume level. turn it up, turn it down, you're in control ✨

πŸ’œ DESCRIPTION πŸ’œ

so AuSoundPlaySynchronousFromFile plays filename and hands back AuTrue when it's done β€” or AuFalse if there was an error 😭

that's the whole thing. it plays the file, and because it's the synchronous girlie, it doesn't come back until the playing is finished. no cap, she's committed 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

  • AuSoundPlay
  • AuSoundPlayFromBucket
  • AuSoundPlayFromData
  • AuSoundPlayFromFile

and also, for the full lore: audiolib β€” Network Audio System C Language Interface 🌈


ngl if you're here you probably want one of the friends above too, so go peek at them, they're all in the same little soundlib clique πŸ’–

and that's the page!! written up in soundlib, version 1.9.5 β€” mwah, slay, go play some audio, ily, bye πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from