libaaruformat 1.0
Aaru Data Preservation Suite - Format Library
Loading...
Searching...
No Matches
TrackEntry Struct Reference

Single optical disc track descriptor (sequence, type, LBAs, session, ISRC, flags). More...

#include <aaruformat/structs/optical.h>

Data Fields

uint8_t sequence
 Track number (1..99 typical for CD audio/data). 0 may indicate placeholder/non-standard.
uint8_t type
 Track type (value from TrackType).
int64_t start
 Inclusive starting LBA of the track.
int64_t end
 Inclusive ending LBA of the track.
int64_t pregap
 Pre-gap length in sectors preceding track start (0 if none).
uint8_t session
 Session number (1-based). 1 for single-session discs.
uint8_t isrc [13]
 ISRC raw 13-byte code (no null terminator). All zeros if not present.
uint8_t flags
 Control / attribute bitfield (see file documentation for suggested bit mapping).

Detailed Description

Single optical disc track descriptor (sequence, type, LBAs, session, ISRC, flags).

Definition at line 71 of file optical.h.

Field Documentation

◆ end

int64_t TrackEntry::end

Inclusive ending LBA of the track.

Definition at line 76 of file optical.h.

Referenced by aaruf_write_sector(), and aaruf_write_sector_long().

◆ flags

uint8_t TrackEntry::flags

Control / attribute bitfield (see file documentation for suggested bit mapping).

Definition at line 80 of file optical.h.

Referenced by aaruf_read_sector_tag(), and aaruf_write_sector_tag().

◆ isrc

uint8_t TrackEntry::isrc[13]

ISRC raw 13-byte code (no null terminator). All zeros if not present.

Definition at line 79 of file optical.h.

Referenced by aaruf_read_sector_tag(), and aaruf_write_sector_tag().

◆ pregap

int64_t TrackEntry::pregap

Pre-gap length in sectors preceding track start (0 if none).

Definition at line 77 of file optical.h.

◆ sequence

uint8_t TrackEntry::sequence

Track number (1..99 typical for CD audio/data). 0 may indicate placeholder/non-standard.

Definition at line 73 of file optical.h.

Referenced by aaruf_read_track_sector(), aaruf_set_tracks(), aaruf_write_sector(), aaruf_write_sector_long(), and process_tracks_block().

◆ session

uint8_t TrackEntry::session

Session number (1-based). 1 for single-session discs.

Definition at line 78 of file optical.h.

Referenced by aaruf_write_sector().

◆ start

int64_t TrackEntry::start

◆ type

uint8_t TrackEntry::type

Track type (value from TrackType).

Definition at line 74 of file optical.h.

Referenced by aaruf_read_sector_long(), aaruf_write_sector(), and aaruf_write_sector_long().


The documentation for this struct was generated from the following file: