al_get_video_audio_rate(3)
π al_get_video_audio_rate(3) π
okay bestie, welcome to the Allegro 5 API docs, specifically the little corner of it that tells you how fast a video's audio is bopping along π
β¨ SYNOPSIS β¨
#include <allegro5/allegro_video.h>
double al_get_video_audio_rate(ALLEGRO_VIDEO *video)
πΈ DESCRIPTION πΈ
So like, you hand it an ALLEGRO_VIDEO *video and it returns the audio rate of that video, in Hz. That's it, that's the whole vibe β the sample rate, the Hz number, no cap π
It's giving "small but essential function" energy, honestly. Iconic.
π¦ SINCE π¦
5.1.0 β she's been here since 5.1.0 and she's been slaying ever since β¨
π«Ά reminder: the return type isdouble, bestie. not an int, not a float βdouble. don't embarrass yourself at the function call, iykyk π
and that's the tea π this page came straight from the Allegro reference manual (Allegro reference manual, obvi π) β mwah, go get that audio rate, main character πππ
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms