Exemplo n.º 1
0
        /// <summary>
        /// Gets the data for the specified chunk
        /// </summary>
        public byte[] GetChunkData(RiffChunk chunk)
        {
            long oldPosition = waveStream.Position;

            waveStream.Position = chunk.StreamPosition;
            var data = new byte[chunk.Length];

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