/// <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; }
/// <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); }