コード例 #1
0
        static ushort NeroTrackModeToBytesPerSector(DaoMode mode)
        {
            switch (mode)
            {
            case DaoMode.Data:
            case DaoMode.DataM2F1: return(2048);

            case DaoMode.DataM2F2: return(2336);

            case DaoMode.DataRaw:
            case DaoMode.DataM2Raw:
            case DaoMode.Audio: return(2352);

            case DaoMode.DataM2RawSub:
            case DaoMode.DataRawSub:
            case DaoMode.AudioSub: return(2448);

            default: return(2352);
            }
        }
コード例 #2
0
        static TrackType NeroTrackModeToTrackType(DaoMode mode)
        {
            switch (mode)
            {
            case DaoMode.Data:
            case DaoMode.DataRaw:
            case DaoMode.DataRawSub: return(TrackType.CdMode1);

            case DaoMode.DataM2F1: return(TrackType.CdMode2Form1);

            case DaoMode.DataM2F2: return(TrackType.CdMode2Form2);

            case DaoMode.DataM2RawSub:
            case DaoMode.DataM2Raw: return(TrackType.CdMode2Formless);

            case DaoMode.Audio:
            case DaoMode.AudioSub: return(TrackType.Audio);

            default: return(TrackType.Data);
            }
        }