al_get_video_position(3alleg5)
π al_get_video_position(3alleg5) π
Allegro 5 API, from the 3alleg5 manual, bestie π«Ά
β¨ NAME β¨
al_get_video_position β Allegro 5 API
π SYNOPSIS π
#include <allegro5/allegro_video.h>
double al_get_video_position(ALLEGRO_VIDEO *video, ALLEGRO_VIDEO_POSITION_TYPE which)
πΈ DESCRIPTION πΈ
okay so picture this: you're deep in a video stream and you need to know exactly where you are. al_get_video_position is the bestie that returns the current position of the video stream in seconds since the beginning. β±οΈβ¨
The parameter is one of the ALLEGRO_VIDEO_POSITION_TYPE(3alleg5) constants. You pass that in as which, and the video argument is your ALLEGRO_VIDEO *. The function hands back a double, so it's seconds as a floating point number. π
β SINCE β
5.1.0 β iconic behavior since then, no cap. π
source/version: Allegro reference manual β 3alleg5. date: not in the footer, so I'm leaving it as a mystery, bestie. π«Ά
π¦ 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