al_get_video_audio_rate(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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