BASS_CD_TOC_TRACK structure

A TOC track entry.

typedef struct {
    BYTE res1;
    BYTE adrcon;
    BYTE track;
    BYTE res2;
    union {
        DWORD lba;
        BYTE hmsf[4];
    };
} BASS_CD_TOC_TRACK;

Members

res1Unused.
adrconADR (high 4 bits) and control (low 4 bits) fields. The control field indicates the attributes of the track, and may include the following.
BASS_CD_TOC_CON_COPYDigital copy permitted.
BASS_CD_TOC_CON_DATAData track.
BASS_CD_TOC_CON_PREPre-emphasis of 50/15 µs.
trackThe track number... 170 = lead-out area.
res2Unused.
The following contain the start address of the track, depending on whether the BASS_CD_TOC_TIME flag was used in the BASS_CD_GetTOC call.
lbaThe address in LBA (Logical Block Address) form.
hmsfThe address in time form. In order, the 4 bytes contain the address in units of hours, minutes, seconds, and frames. The hours field is always 0, and the minutes field will be above 60 instead if necessary.

Remarks

If BASS_CD_TOC_INDEX was used in the BASS_CD_GetTOC call, track will be an index number rather than a track number and lba/hmsf will be the index's offset from the start of the track. The other members are unused.

See also

BASS_CD_TOC structure