/*
         * static RiffChunkListRgn2()
         * {
         *      chunkTypeDictionary = new Dictionary<string, Type>();
         *      chunkTypeDictionary.Add( RiffDls_Rgnh.ID, typeof( RiffDls_Rgnh ) );
         *      chunkTypeDictionary.Add( RiffDls_Wsmp.ID, typeof( RiffDls_Wsmp ) );
         *      chunkTypeDictionary.Add( RiffDls_Wlnk.ID, typeof( RiffDls_Wlnk ) );
         *
         *      bodyTypeDictionary = new Dictionary<string, Type>();
         *      //			chunkTypeDictionary.Add( RiffChunkList.ID, typeof( RiffChunkList ) );
         *      bodyTypeDictionary.Add( RiffChunkListRgn_.TYPE, typeof( RiffChunkListRgn_ ) );
         * }*/

        public RiffChunkListRgn2(string aId, UInt32 aSize, AByteArray aByteArray, RiffChunkList aParent)
            : base(aId, aSize, aByteArray, aParent)
        {
            type = TYPE;

            rgnhBody     = ( RiffDls_Rgnh )GetChunk(RiffDls_Rgnh.ID);
            wsmpBody     = ( RiffDls_Wsmp )GetChunk(RiffDls_Wsmp.ID);
            wlnkBody     = ( RiffDls_Wlnk )GetChunk(RiffDls_Wlnk.ID);
            rgn_ListList = GetChunkListList("LIST", RiffChunkListRgn_.TYPE);
        }
        /*
         * static RiffChunkListWave()
         * {
         *      chunkTypeDictionary = new Dictionary<string, Type>();
         *      chunkTypeDictionary.Add( RiffDls_Dlid.ID, typeof( RiffDls_Dlid ) );
         *      chunkTypeDictionary.Add( RiffDls_Fmt_.ID, typeof( RiffDls_Fmt_ ) );
         *      chunkTypeDictionary.Add( RiffDls_Data.ID, typeof( RiffDls_Data ) );
         *      chunkTypeDictionary.Add( RiffDls_Wsmp.ID, typeof( RiffDls_Wsmp ) );
         *
         *      bodyTypeDictionary = new Dictionary<string, Type>();
         *      //			chunkTypeDictionary.Add( RiffChunkList.ID, typeof( RiffChunkList ) );
         *      bodyTypeDictionary.Add( RiffChunkListLrgn.TYPE, typeof( RiffChunkListLrgn ) );
         *      bodyTypeDictionary.Add( RiffDls_List.TYPE, typeof( RiffDls_List ) );
         * }*/

        public RiffChunkListWave(string aId, UInt32 aSize, AByteArray aByteArray, RiffChunkList aParent)
            : base(aId, aSize, aByteArray, aParent)
        {
            type = TYPE;

            dlidChunk = ( RiffDls_Dlid )GetChunk(RiffDls_Dlid.ID);
            fmt_Chunk = ( RiffDls_Fmt_ )GetChunk(RiffDls_Fmt_.ID);
            dataChunk = ( RiffDls_Data )GetChunk(RiffDls_Data.ID);
            wsmpChunk = ( RiffDls_Wsmp )GetChunk(RiffDls_Wsmp.ID);
        }