AudioCompressionManagerChangeSpeed Method (Stream, Stream, Int32) |
Changes the speed of audio stream.
Namespace: Alvas.AudioAssembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax public static void ChangeSpeed(
Stream inStream,
Stream outStream,
int persent
)
Public Shared Sub ChangeSpeed (
inStream As Stream,
outStream As Stream,
persent As Integer
)
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