コード例 #1
0
        public FormChunkListAiff(string aId, UInt32 aSize, ByteArray aByteArray, FormChunkList aParent)
            : base(chunkTypeDictionary, bodyTypeDictionary, aId, aSize, aByteArray, aParent)
        {
            type = TYPE;

            chunkChan = ( FormChunkChan )GetChunk(FormChunkChan.ID);
            chunkComm = ( FormChunkComm )GetChunk(FormChunkComm.ID);
            chunkComt = ( FormChunkComt )GetChunk(FormChunkComt.ID);
            chunkMark = ( FormChunkMark )GetChunk(FormChunkMark.ID);
            chunkSsnd = ( FormChunkSsnd )GetChunk(FormChunkSsnd.ID);
        }
コード例 #2
0
        public FormChunkComm(string aId, UInt32 aSize, ByteArray aByteArray, FormChunkList aParent)
            : base(aId, aSize, aByteArray, aParent)
        {
            numberOfChannels = aByteArray.ReadUInt16();
            numberOfFrames   = aByteArray.ReadUInt32();
            bitsPerSamples   = aByteArray.ReadUInt16();
            sampleRate       = aByteArray.ReadExtendedFloatPoint();

            informationList.Add("Number Of Channels:" + numberOfChannels);
            informationList.Add("Number Of Frames:" + numberOfFrames);
            informationList.Add("Bits Per Samples:" + bitsPerSamples);
            informationList.Add("Sample Rate:" + sampleRate);
        }
コード例 #3
0
        public FormChunkSsnd(string aId, UInt32 aSize, ByteArray aByteArray, FormChunkList aParent)
            : base(aId, aSize, aByteArray, aParent)
        {
            offset    = aByteArray.ReadUInt32();
            blockSize = aByteArray.ReadUInt32();
            comment   = aByteArray.ReadString(( int )offset);

            dataSize = ( int )(size - offset - 8);
            aByteArray.AddPosition(dataSize);

            informationList.Add("Offset:" + offset);
            informationList.Add("Block Size:" + blockSize);
            informationList.Add("Comment:" + comment);
        }
コード例 #4
0
 public FormChunkChan(string aId, UInt32 aSize, ByteArray aByteArray, FormChunkList aParent)
     : base(aId, aSize, aByteArray, aParent)
 {
     aByteArray.AddPosition(( int )size);
 }
コード例 #5
0
 public FormAiffMark(string aId, UInt32 aSize, AByteArray aByteArray, FormChunkList aParent)
     : base(aId, aSize, aByteArray, aParent)
 {
     aByteArray.AddPosition(( int )Size);
 }
コード例 #6
0
 public FormAiffForm(string aId, UInt32 aSize, AByteArray aByteArray, FormChunkList aParent)
     : base(aId, aSize, aByteArray, aParent)
 {
 }