Click or drag to resize
AudioCompressionManagerCopy Method (Stream, Stream, Int32, Int32)
Copy part audio data from in stream to out stream

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public static void Copy(
	Stream inStream,
	Stream outStream,
	int skipSeconds,
	int readSeconds
)

Parameters

inStream
Type: System.IOStream
input stream
outStream
Type: System.IOStream
output stream
skipSeconds
Type: SystemInt32
skip seconds
readSeconds
Type: SystemInt32
read seconds
Examples
This example shows simple using of Copy method.
string inFile = "in.wav";
string outFile = "out.wav";
int skipSeconds = 1;
int readSeconds = 2;
AudioCompressionManager.Copy(File.OpenRead(inFile), File.Create(outFile), skipSeconds, readSeconds);
See Also