Class Burn::Session

Abstract

This class references a single session on a disc.

Inherits from: Object ← Burn::Session .

Included in: Burn .

Index: add_track each_track hide_first_track= hide_first_track? new remove_track tracks

Class methods
newnew
 

Creates a new session (For SAO at once recording, or to be added to a disc for DAO).

Instance methods
add_trackadd_track(track, pos)
 

Adds a track to the session at specified position.

  • track: the track to insert in the session (as a Burn::Track object).

  • pos: position to add at (Burn::POS_END is "at the end").

  • Returns: true on success, false otherwise.

each_trackeach_track { |track| ... }
 

Calls the block for each track in the session, passing a reference to a Burn::Track object as parameter.

  • Returns: always nil.

hide_first_track=hide_first_track=(state)
 

Hides the first track in the "pre gap" of the disc.

  • state: true to enable hiding, false to disable.

  • Returns: the state.

hide_first_track?hide_first_track?
 
  • Returns: whether the first track is hidden or not in the "pre gap" of the disc.

remove_trackremove_track(track)
 

Removes a track from the session.

  • track: the track to remove from the session (as a Burn::Track object).

  • Returns: true on success, false otherwise.

trackstracks
 

Gets a list of all tracks in the session.