コード例 #1
0
 /*
  * static RiffChunkListIns_()
  * {
  *      Dictionary<string, Type> lChunkTypeDictionary = new Dictionary<string, Type>();
  *      lChunkTypeDictionary.Add( RiffDls_Dlid.ID, typeof( RiffDls_Dlid ) );
  *      lChunkTypeDictionary.Add( RiffDls_Insh.ID, typeof( RiffDls_Insh ) );
  *
  *      ChunkTypeDictionaryDictionary = new Dictionary<string, Dictionary<string,Type>>();
  *      ChunkTypeDictionaryDictionary.Add( "ins ", lChunkTypeDictionary );
  *
  *      //bodyTypeDictionary = new Dictionary<string, Type>();
  *      //			chunkTypeDictionary.Add( RiffChunkList.ID, typeof( RiffChunkList ) );
  *      //bodyTypeDictionary.Add( RiffChunkListLrgn.TYPE, typeof( RiffChunkListLrgn ) );
  *      //bodyTypeDictionary.Add( RiffChunkListLart.TYPE, typeof( RiffChunkListLart ) );
  *      //bodyTypeDictionary.Add( RiffInfoList.TYPE, typeof( RiffInfoList ) );
  * }
  */
 public RiffChunkListIns_(string aId, UInt32 aSize, AByteArray aByteArray, RiffChunkList aParent)
     : base(aId, aSize, aByteArray, aParent)
 {
     dlidChunk    = ( RiffDls_Dlid )GetChunk(RiffDls_Dlid.ID);
     inshChunk    = ( RiffDls_Insh )GetChunk(RiffDls_Insh.ID);
     lrgnListList = null;            // GetChunkListList( "LIST", RiffChunkListLrgn.TYPE );
     lartListList = null;            //GetChunkListList( "LIST", RiffChunkListLart.TYPE );
     infoListList = null;            //GetChunkListList( "LIST", RiffInfoList.TYPE );
 }
コード例 #2
0
        /*
         * 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);
        }