Esempio n. 1
0
        public Track(int tracknumber, DataType datatype)
        {
            m_TrackNumber = tracknumber;
            m_TrackDataType = datatype;

            m_TrackFlags = new Flags[0];
            m_Songwriter = "";
            m_Title = "";
            m_ISRC = "";
            m_Performer = "";
            m_Indices = new Index[0];
            m_Garbage = new string[0];
            m_Comments = new string[0];
            m_PreGap = new Index(-1, 0, 0, 0);
            m_PostGap = new Index(-1, 0, 0, 0);
            m_DataFile = new AudioFile();
        }
Esempio n. 2
0
        public Track(int tracknumber, string datatype)
        {
            m_TrackNumber = tracknumber;

            switch (datatype.Trim ().ToUpper ())
            {
                case "AUDIO":
                    m_TrackDataType = DataType.AUDIO;
                    break;
                case "CDG":
                    m_TrackDataType = DataType.CDG;
                    break;
                case "MODE1/2048":
                    m_TrackDataType = DataType.MODE1_2048;
                    break;
                case "MODE1/2352":
                    m_TrackDataType = DataType.MODE1_2352;
                    break;
                case "MODE2/2336":
                    m_TrackDataType = DataType.MODE2_2336;
                    break;
                case "MODE2/2352":
                    m_TrackDataType = DataType.MODE2_2352;
                    break;
                case "CDI/2336":
                    m_TrackDataType = DataType.CDI_2336;
                    break;
                case "CDI/2352":
                    m_TrackDataType = DataType.CDI_2352;
                    break;
                default:
                    m_TrackDataType = DataType.AUDIO;
                    break;
            }

            m_TrackFlags = new Flags[0];
            m_Songwriter = "";
            m_Title = "";
            m_ISRC = "";
            m_Performer = "";
            m_Indices = new Index[0];
            m_Garbage = new string[0];
            m_Comments = new string[0];
            m_PreGap = new Index(-1, 0, 0, 0);
            m_PostGap = new Index(-1, 0, 0, 0);
            m_DataFile = new AudioFile();
        }