Click or drag to resize
AudioCompressionManagerChangeSpeed Method (Stream, Stream, Int32)
Changes the speed of audio stream.

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

Parameters

inStream
Type: System.IOStream
input stream
outStream
Type: System.IOStream
output stream
persent
Type: SystemInt32
100 is normal speed, 50 is reduced by half, 200 is increased in 2 times
Examples
This example shows simple using of ChangeSpeed method.
string inFile = @"in.wav";
string outFile = @"out.wav";
int persent = 50;
AudioCompressionManager.ChangeSpeed(File.OpenRead(inFile), File.Create(outFile), persent);
See Also