---
name: "ALLEGRO_VIDEO_POSITION_TYPE"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ALLEGRO_VIDEO_POSITION_TYPE/3alleg5"
---

# ALLEGRO\_VIDEO\_POSITION\_TYPE(3alleg5)

Allegro 5 API

## NAME

ALLEGRO\_VIDEO\_POSITION\_TYPE - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_video.h>
  typedef enum ALLEGRO_VIDEO_POSITION_TYPE ALLEGRO_VIDEO_POSITION_TYPE;
  ```

## DESCRIPTION

Used with al\_get\_video\_position(3alleg5) to specify which position to retrieve. If these get out of sync, audio and video may be out of sync in the display of the video.

- •

  ALLEGRO\_VIDEO\_POSITION\_ACTUAL - The amount of time the video has been playing. If the video has audio then this value can be ahead of ALLEGRO\_VIDEO\_POSITION\_VIDEO\_DECODE when video decoding lags.

- •

  ALLEGRO\_VIDEO\_POSITION\_VIDEO\_DECODE - The amount of video that has been decoded. This may lag behind the “actual” and audio positions if decoding is slower than realtime.

- •

  ALLEGRO\_VIDEO\_POSITION\_AUDIO\_DECODE - The amount of audio that has been decoded. This may be the same as ALLEGRO\_VIDEO\_POSITION\_ACTUAL if audio decode is driving the position, which is common to keep audio and video in sync.

## SINCE

5\.1.11
