예제 #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);
        }
예제 #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;
		}