Class Burn::Track

Abstract

This class references a single track on a disc.

Inherits from: Object ← Burn::Track .

Included in: Burn .

Index: clear_isrc define_data entry mode new sectors set_isrc set_source toc_entry

Class methods
newnew
 

Creates a track (for TAO recording, or to put in a session).

Instance methods
clear_isrcclear_isrc
 

Disables ISRC parameters for a track.

  • Returns: self.

define_datadefine_data(offset, tail, pad, mode)
 

Defines the data in a track.

  • mode: mode data format (bitfield).

  • tail: the number of extra 0s to write after data.

  • pad: true means the library should pad the last sector with 0s if the track isn't exactly sector sized (otherwise the library will begin reading from the next track).

  • offset: the library will write this many 0s before start of data.

  • Returns: self.

entryentry
 

Gets the associated TOC entry of this track.

modemode
 

Gets the audio/data mode for the entry. Derived from control and possibly from reading the track's first sector.

  • Returns: the mode of the track.

sectorssectors
 
  • Returns: how long a track will be on disc.

set_isrcset_isrc(country, owner, year, serial)
 

Sets the ISRC details for a track.

  • serial: 5 digit serial number (a number in 0-99999).

  • country: a 2 char country code, each character must be only numbers or letters.

  • year: a 2 digit year (a number in 0-99, yep, not Y2K friendly).

  • owner: a 3 char owner code, each character must be only numbers or letters.

  • Returns: self.

set_sourceset_source(source)
 

Sets the track's data source.

toc_entrytoc_entry
 

Synonym for Burn::Track#entry.