---
name: "SDL_CDtrack"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_CDtrack"
---

# SDL\_CDtrack(3)

CD Track Information Structure

## NAME

SDL\_CDtrack - CD Track Information Structure

## STRUCTURE DEFINITION

```
typedef struct{
  Uint8 id;
  Uint8 type;
  Uint32 length;
  Uint32 offset;
} SDL_CDtrack;
```

## STRUCTURE DATA

- **id**

  Track number (0-99)

- **type**

  **SDL\_AUDIO\_TRACK** or **SDL\_DATA\_TRACK**

- **length**

  Length, in frames, of this track

- **offset**

  Frame offset to the beginning of this track

## DESCRIPTION

**SDL\_CDtrack** stores data on each track on a CD, its fields should be pretty self explainatory. It is a member a the **SDL\_CD** structure.

**Note:**

**Frames can be converted to standard timings. There are CD\_FPS frames per second, so SDL\_CDtrack**.**length**/**CD\_FPS**=length\_in\_seconds.

## SEE ALSO

**SDL\_CD**
