al_get_video_position(3alleg5)

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

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