Example #1
0
 /// <summary>
 /// Gets the data for the specified chunk
 /// </summary>
 public byte[] GetChunkData(RiffChunk chunk)
 {
     long oldPosition = waveStream.Position;
     waveStream.Position = chunk.StreamPosition;
     byte[] data = new byte[chunk.Length];
     waveStream.Read(data, 0, data.Length);
     waveStream.Position = oldPosition;
     return data;
 }
Example #2
0
        /// <summary>
        /// Gets the data for the specified chunk
        /// </summary>
        public byte[] GetChunkData(RiffChunk chunk)
        {
            long oldPosition = waveStream.Position;

            waveStream.Position = chunk.StreamPosition;
            byte[] data = new byte[chunk.Length];
            waveStream.Read(data, 0, data.Length);
            waveStream.Position = oldPosition;
            return(data);
        }