AudioCompressionManagerSplitStereo Method (Stream, Stream, Stream) |
Splits one stereo stream into two mono streams (left and right channels).
Namespace: Alvas.AudioAssembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax public static void SplitStereo(
Stream stereoStream,
Stream leftStream,
Stream rightStream
)
Public Shared Sub SplitStereo (
stereoStream As Stream,
leftStream As Stream,
rightStream As Stream
)
public:
static void SplitStereo(
Stream^ stereoStream,
Stream^ leftStream,
Stream^ rightStream
)
Parameters
- stereoStream
- Type: System.IOStream
input stereo Wave stream - leftStream
- Type: System.IOStream
output mono Wave stream for left channel - rightStream
- Type: System.IOStream
output mono Wave stream for right channel
Examples This example shows simple using of SplitStereo method.
string inFile = "stereo.wav";
string leftFile = "left.wav";
string rightFile = "right.wav";
AudioCompressionManager.SplitStereo(File.OpenRead(inFile),
File.Create(leftFile), File.Create(rightFile));
See Also