Platforms to show: All Mac Windows Linux Cross-Platform

DRTrackMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class DiscRecording MBS MacControls Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The DRTrack class represents a track on the burned disc.
Example
dim track as DRTrackMBS
dim bsp as DRBurnSetupPanelMBS
dim bpp as DRBurnProgressPanelMBS

// we need a track
track=CreateTrack

if track<>nil then
bsp=new DRBurnSetupPanelMBS

// set a few options
bsp.setCanSelectAppendableMedia true
bsp.setCanSelectTestBurn true

if bsp.runSetupPanel=bsp.NSOKButton then
bpp=new DRBurnProgressPanelMBS

// And start off the burn itself. This will put up the progress dialog
// and do all the nice pretty things that a happy app does.
bpp.beginProgressPanelForBurn bsp.burnObject, track

else
MsgBox "You pressed cancel."
end if
end if

A DRTrack provides data to the for the burn and contains a description of the track on disc (length, block type, data format, etc). Data is provided for the burn in a real-time thread. It is up to the track to provide this data in a timely manner, otherwise a burn underrun can occur and ruin a disc.

All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.

Constants

Constant Value Description
DRFlagSubchannelDataRequested 2 A flag passed to producePreGapForTrack or produceDataForTrack. Indicates that the blockSize passed in includes room for subchannel data. more
kDRBlockSizeAudio 2352 One of the block size constants. Audio data.
kDRBlockSizeDVDData 2048 One of the block size constants. DVD data.
kDRBlockSizeMode1Data 2048 One of the block size constants. Mode 1 data.
kDRBlockSizeMode2Data 2332 One of the block size constants. Mode 2 data. Photo CD and CD-i use this.
kDRBlockSizeMode2Form1Data 2048 One of the block size constants. Mode 2 Form 1 data.
kDRBlockSizeMode2Form2Data 2324 One of the block size constants. Mode 2 Form 2 data.
kDRBlockTypeAudio 0 One of the block type constants. Audio data.
kDRBlockTypeDVDData 8 One of the block type constants. DVD data.
kDRBlockTypeMode1Data 8 One of the block type constants. Mode 1 data.
kDRBlockTypeMode2Data 13 One of the block type constants. Mode 2 data. Photo CD and CD-i use this.
kDRBlockTypeMode2Form1Data 10 One of the block type constants. Mode 2 Form 1 data.
kDRBlockTypeMode2Form2Data 12 One of the block type constants. Mode 2 Form 2 data.
kDRDataFormAudio 0 One of the data form constants. Audio data.
kDRDataFormDVDData 16 One of the data form constants. DVD data.
kDRDataFormMode1Data 16 One of the data form constants. Mode 1 data.
kDRDataFormMode2Data 32 One of the data form constants. Mode 2 data. Photo CD and CD-i use this.
kDRDataFormMode2Form1Data 32 One of the data form constants. Mode 2 Form 1 data.
kDRDataFormMode2Form2Data 32 One of the data form constants. Mode 2 Form 2 data.
kDRSessionFormatAudio 0 One of the constants for the session format. Audio data.
kDRSessionFormatCDI 16 One of the constants for the session format. CD-I disc.
kDRSessionFormatCDXA 32 One of the constants for the session format. CD-ROM XA disc.
kDRSessionFormatDVDData 0 One of the constants for the session format. DVD data.
kDRSessionFormatMode1Data 0 One of the constants for the session format. Mode 1 data.
kDRTrackMode1Data 4 One of the track mode constants. Mode 1 data.
kDRTrackMode2Data 4 One of the track mode constants. Mode 2 data. Photo CD and CD-i use this.
kDRTrackMode2Form1Data 4 One of the track mode constants. Mode 2 Form 1 data.
kDRTrackMode2Form2Data 4 One of the track mode constants. Mode 2 Form 2 data.
kDRTrackModeAudio 0 One of the track mode constants. Audio data.
kDRTrackModeDVDData 5 One of the track mode constants. DVD data.

This class has no sub classes.

Some methods using this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine


The items on this page are in the following plugins: MBS MacControls Plugin.


DRSetupPanelMBS   -   DVDPlaybackMBS


The biggest plugin in space...