IWMEncSource.TransformCollection
The TransformCollection property retrieves a collection of transform plug-ins.
Syntax
IWMEncTransformCollection = IWMEncSource.TransformCollection;
Parameters
This property takes no parameters.
Property Value
An IWMEncTransformCollection object.
Remarks
This property is read-only.
Example Code
using WMEncoderLib;
try
{
// Create a WMEncoder object.
WMEncoder Encoder;
Encoder = new WMEncoder();
// Configure the profile and an audio source.
// Retrieve the transform collection from the audio source.
IWMEncTransformCollection SrcTrnsColl;
SrcTrnsColl = SrcAud.TransformCollection;
// Add a transform plug-in to the collection.
IWMEncTransform Trans;
Trans = SrcTrnsColl.Add();
// Apply a DMO Audio Transform Filter to the source.
Trans.SetInput("Echo", "PluginWrapperForDMO", "");
// Add another DMO Audio Transform Filter.
Trans = SrcTrnsColl.Add();
Trans.SetInput("Gargle", "PluginWrapperForDMO", "");
// Retrieve the name of the plug-ins in the current source collection.
string sName;
string sScheme;
string sInitData;
for (i = 0; i < SrcTrnsColl.Count; i++)
{
sName = SrcTrnsColl.Item(i).GetInput(out sScheme, out sInitData);
}
}
catch (Exception e)
{
// TODO: Handle exceptions.
}
Requirements
Reference: Windows Media Encoder
Namespace: WMEncoderLib
Assembly: Interop.WMEncoderLib.dll
Library: WMEncoderLib.dll
See Also