al_get_video_audio_rate(3alleg5)
π al_get_video_audio_rate β from the 3alleg5 manual, aka the Allegro 5 API bestie π
okay so like. you're deep in Allegro 5 land and you've got a video loaded and you need to know what its audio is doing?? bestie this is THE function. no cap. it's giving "one job, does it perfectly" β¨
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_video.h>
double al_get_video_audio_rate(ALLEGRO_VIDEO *video)
like literally that's it. one include, one call, one double coming back at you π«Ά
π DESCRIPTION π
It returns the audio rate of the video, in Hz. π
that's the whole vibe. you hand it your ALLEGRO_VIDEO *video and it tells you the audio rate in Hz. that's it. that's the function. main character energy fr fr π
ngl if you were expecting a novel you're getting a haiku instead, and honestly? iconic. π
β SINCE β
5.1.0 β so it's been around since 5.1.0, an absolute elder of the Allegro 5 era π
lowkey reminder bestie: the audio rate it gives you is in Hz, so don't go treating it like a sample count or a channel number or anything else. it's Hz. that's the whole deal π
and that's the page!! π huge thanks to the Allegro reference manual for keeping this one short and sweet β mwah, sending it off with a kiss from the Allegro 5 API era, 5.1.0 and beyond β¨ππ¦
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms