PrimoBurner for .NET  5.0
CD, DVD and Blu-ray Software Development Kit
Loading...
Searching...
No Matches
CDSession Class Reference

The CDSession interface allows you to define the session layout (the TOC) of a CD. More...

Public Member Functions

 CDSession ()
 Creates a new instance of CDSession.
 
void ClearRawPoint (RawPoint point)
 Clears a raw session point.
 
RawTocTrack GetRawPoint (RawPoint point)
 Gets the data for a raw session point.
 
bool SetRawPoint (RawPoint point, RawTocTrack rawTocTrack)
 The SetRawPoint method sets a raw point to be used during the recording of the lead-in of a CD.
 

Properties

Int32 Length [get]
 Gets the length of the session in blocks.
 
String Mcn [get, set]
 Gets/Sets the Media Catalog Number (MCN) also known as the Uniform Product Code(UPC) of the disc.
 
CDSession NextCDSession [get, set]
 Gets/Sets a CDSession object that defines the next session.
 
IList< CDTrackTracks [get]
 Gets the list of tracks in the session.
 
SessionType Type [get, set]
 Gets/Sets the session type.
 

Detailed Description

The CDSession interface allows you to define the session layout (the TOC) of a CD.

Member Function Documentation

◆ ClearRawPoint()

void ClearRawPoint ( RawPoint  point)

Clears a raw session point.

Parameters
pointRaw TOC point.
See also
CDSession.SetRawPoint, CDSession.ClearRawPoint, RawPoint

◆ GetRawPoint()

RawTocTrack GetRawPoint ( RawPoint  point)

Gets the data for a raw session point.

Parameters
pointRaw point number.
Returns
Returns the requested raw point if such is defined for the CD session, otherwise returns null
See also
CDSession.SetRawPoint, CDSession.ClearRawPoint, RawPoint

◆ SetRawPoint()

bool SetRawPoint ( RawPoint  point,
RawTocTrack  rawTocTrack 
)

The SetRawPoint method sets a raw point to be used during the recording of the lead-in of a CD.

The points set with this method are used only when the session type is
SessionType.Raw and are ignored for all other session types.

Parameters
pointRaw point number.
rawTocTrackA RawTocTrack structure that contains the raw point data.
Returns
true - Success, false - The raw point is not supported, or has never been set.
See also
CDSession.SetRawPoint, CDSession.ClearRawPoint, RawPoint

Property Documentation

◆ Length

Int32 Length
get

Gets the length of the session in blocks.

That is the total length of all tracks including the pre-gaps and the post-gaps.

This is a convenience property. The return value is always the post-gap end of the last track + 1.

◆ NextCDSession

CDSession NextCDSession
getset

Gets/Sets a CDSession object that defines the next session.

This property is useful when burning multi-session CDs in RAW mode only.


Next session object is ignored when a write method other than FullRawDao, RawDao and RawDao2352 is used with the Device.StartCDSession method.