---
name: "CL_MPEG"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_MPEG"
---

# CL\_MPEG(3)

## NAME

CL\_MPEG

## CLASS MEMBERS

- **CL\_MPEG**(

  ```
  const char *filename,
  bool video = true,
  bool audio = true)
  ```

- **~CL\_MPEG**()

  - void **set\_audio**(

  ```
  bool flag)
  ```

- void **set\_video**(

  ```
  bool flag)
  ```

- void **set\_double**(

  ```
  bool flag)
  ```

- void **set\_loop**(

  ```
  bool flag)
  ```

- void **set\_volume**(

  ```
  int volume)
  ```

- void **move**(

  ```
  int x,
  int y)
  ```

- bool **has\_video**()

  - bool **has\_audio**()

  - unsigned int **get\_width**()

  - unsigned int **get\_height**()

  - unsigned int **get\_current\_frame**()

  - double **get\_current\_fps**()

  - CL\_MPEG\_Status **get\_status**()

  - void **play**()

  - void **pause**()

  - void **stop**()

  - void **rewind**()

  - void **set\_display**(

  ```
  CL_Target* dst,
  CL_Mutex* surfLock,
  CL_MPEG_DisplayCallback callback)
  ```

- void **set\_display**(

  ```
  CL_Target* dst)
  ```

- char\* **get\_error**()

  ## MEMBERS WITH DESCRIPTIONS

- **CL\_MPEG**(

  ```
  const char *filename,
  bool video = true,
  bool audio = true)
  ```

  ```
  Description:
  ```

- **~CL\_MPEG**()

  ```
  Description:
  ```

- void **set\_audio**(

  ```
  bool flag)
  ```

  ```
  Description:
  ```

- void **set\_video**(

  ```
  bool flag)
  ```

  ```
  Description:
  ```

- void **set\_double**(

  ```
  bool flag)
  ```

  ```
  Description:
  ```

- void **set\_loop**(

  ```
  bool flag)
  ```

  ```
  Description:
  ```

- void **set\_volume**(

  ```
  int volume)
  ```

  ```
  Description:
  ```

- void **move**(

  ```
  int x,
  int y)
  ```

  ```
  Description:
  ```

- bool **has\_video**()

  ```
  Description:
  ```

- bool **has\_audio**()

  ```
  Description:
  ```

- unsigned int **get\_width**()

  ```
  Description:
  ```

- unsigned int **get\_height**()

  ```
  Description:
  ```

- unsigned int **get\_current\_frame**()

  ```
  Description:
  ```

- double **get\_current\_fps**()

  ```
  Description:
  ```

- CL\_MPEG\_Status **get\_status**()

  ```
  Description:
  ```

- void **play**()

  ```
  Description:
  ```

- void **pause**()

  ```
  Description:
  ```

- void **stop**()

  ```
  Description:
  ```

- void **rewind**()

  ```
  Description:
  ```

- void **set\_display**(

  ```
  CL_Target* dst,
  CL_Mutex* surfLock,
  CL_MPEG_DisplayCallback callback)
  ```

  ```
  Description:
  ```

- void **set\_display**(

  ```
  CL_Target* dst)
  ```

  ```
  Description:
  ```

- char\* **get\_error**()

  ```
  Description:
  ```

## SEE ALSO

All ClanLib API classes can be found in **clanlib (3)**.

## AUTHORS

Originally written by Magnus Norddahl \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at **http://somewhere.in.the.world.org**).

See **clanlib (3)** to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.
