IWMEncTransform.GetInput

Windows Media Encoder SDK banner art

The GetInput method retrieves the name and scheme of a transform plug-in.

Syntax

string IWMEncTransform.GetInput(
  out string  pbstrScheme,
  out string  pbstrInitData
);

Parameters

pbstrScheme

[out]  String containing the scheme type.

pbstrInitData

[out]  String containing optional initialization data.

Return Values

This method returns a String containing the name of the transform plug-in and another string strInitData containing any initialization data.

If this method fails, it returns an error number.

Number Description
0x8007000E Memory cannot be allocated.

Remarks

To use the time compression plug-in, you must add the Windows Media Encoder Time Compression Plug-in reference to the project. For more information, see Programming in C#.

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", "");

// Retrieve the name and scheme type of the transform plug-in.
string sScheme;
string sInitData;
string sTransName;
sTransName = Trans.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