Beispiel #1
0
 public static void SetupTOC(LibSaturnus.TOC t, DiscTOC tin)
 {
     // everything that's not commented, we're sure about
     t.FirstTrack = tin.FirstRecordedTrackNumber;
     t.LastTrack  = tin.LastRecordedTrackNumber;
     t.DiskType   = (int)tin.Session1Format;
     for (int i = 0; i < 101; i++)
     {
         t.Tracks[i].Adr     = tin.TOCItems[i].Exists ? 1 : 0;             // ????
         t.Tracks[i].Lba     = tin.TOCItems[i].LBA;
         t.Tracks[i].Control = (int)tin.TOCItems[i].Control;
         t.Tracks[i].Valid   = tin.TOCItems[i].Exists ? 1 : 0;
     }
 }
Beispiel #2
0
        private void CDTOCCallback(int disk, [In, Out] LibSaturnus.TOC t)
        {
            // everything that's not commented, we're sure about
            var tin = _disks[disk].TOC;

            t.FirstTrack = tin.FirstRecordedTrackNumber;
            t.LastTrack  = tin.LastRecordedTrackNumber;
            t.DiskType   = (int)tin.Session1Format;
            for (int i = 0; i < 101; i++)
            {
                t.Tracks[i].Adr     = tin.TOCItems[i].Exists ? 1 : 0;             // ????
                t.Tracks[i].Lba     = tin.TOCItems[i].LBA;
                t.Tracks[i].Control = (int)tin.TOCItems[i].Control;
                t.Tracks[i].Valid   = tin.TOCItems[i].Exists ? 1 : 0;
            }
        }
Beispiel #3
0
 private void CDTOCCallback(int disk, [In, Out] LibSaturnus.TOC t)
 {
     SetupTOC(t, _disks[disk].TOC);
 }