AudioCompressionManagerRemove Method (Stream, Stream, Int32, Int32) |
Remove part audio data from stream.
Namespace: Alvas.AudioAssembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax public static void Remove(
Stream inStream,
Stream outStream,
int fromSeconds,
int duration
)
Public Shared Sub Remove (
inStream As Stream,
outStream As Stream,
fromSeconds As Integer,
duration As Integer
)
public:
static void Remove(
Stream^ inStream,
Stream^ outStream,
int fromSeconds,
int duration
)
Parameters
- inStream
- Type: System.IOStream
input stream - outStream
- Type: System.IOStream
output stream - fromSeconds
- Type: SystemInt32
start position(in seconds) - duration
- Type: SystemInt32
duration (in seconds)
Examples This example shows simple using of Remove method.
string inFile = "in.wav";
string outFile = "out.wav";
int fromSeconds = 0;
int duration = 1;
AudioCompressionManager.Remove(File.OpenRead(inFile), File.Create(outFile), fromSeconds, duration);
See Also