Ejemplo n.º 1
0
        // ---------- CONSTRUCTORS & INITIALIZERS

        protected void resetData()
        {
            formatVersion = -1;
            bits          = 0;
            sampleRate    = 0;
            duration      = 0;
            bitrate       = 0;
            isValid       = false;
            id3v2Offset   = -1;
            id3v2StructureHelper.Clear();
        }
Ejemplo n.º 2
0
        protected void ResetData()
        {
            tagExists  = false;
            tagVersion = 0;

            if (null == tagData)
            {
                tagData = new TagData();
            }
            else
            {
                tagData.Clear();
            }
            if (null == pictureTokens)
            {
                pictureTokens = new List <PictureInfo>();
            }
            else
            {
                pictureTokens.Clear();
            }
            if (null == picturePositions)
            {
                picturePositions = new List <KeyValuePair <string, int> >();
            }
            else
            {
                picturePositions.Clear();
            }
            if (null == structureHelper)
            {
                structureHelper = new FileStructureHelper(isLittleEndian);
            }
            else
            {
                structureHelper.Clear();
            }
        }
Ejemplo n.º 3
0
        // ---------- CONSTRUCTORS & INITIALIZERS

        private void resetData()
        {
            duration = 0;
            bitrate  = 0;
            isValid  = false;
            id3v2StructureHelper.Clear();

            bits       = 0;
            sampleRate = 0;

            versionID = 0;

            id3v2Offset = -1;

            ResetData();
        }
Ejemplo n.º 4
0
        // ---------- CONSTRUCTORS & INITIALIZERS

        protected void resetData()
        {
            duration = 0;
            bitrate  = 0;

            sampleRate     = 0;
            bytesPerSecond = 0;
            bitsPerSample  = 0;
            sampleNumber   = 0;
            headerSize     = 0;

            id3v2Offset = -1;
            id3v2StructureHelper.Clear();

            ResetData();
        }