MFT_AudioDelay Sample

Shows how to implement an audio effect as a Media Foundation Transform (MFT). The audio delay MFT accepts PCM audio as input, applies a delay (echo) effect, and outputs the modified audio data.

APIs Demonstrated

This sample demonstrates the following Microsoft Media Foundation interfaces:

Usage

The MFT_AudioDelay sample builds a DLL that is a COM server for the MFT. Before using the MFT, you must register the DLL. You can use the TopoEdit tool to build a topology that includes the audio delay MFT. For more information about TopoEdit, see TopoEdit. You can also modify the PlaybackFX Sample to use the MFT. You will need to modify the AddBranchToPartialTopology function in Player.cpp. Change the following line from:

else if (majorType == MFMediaType_Audio)
{
    hr = CreateAudioBranch(pTopology, pSourceNode, GUID_NULL);
}

To:

else if (majorType == MFMediaType_Audio)
{
    hr = CreateAudioBranch(pTopology, pSourceNode, CLSID_DelayMFT);
}

The value CLSID_DelayMFT is declared in the header file AudioDelayUuids.h in the MFT_AudioDelay sample folder.

Requirements

ProductVersion
Windows SDKWindows 7

 

Downloading the Sample

This sample is available in the Windows classic samples github repository.

Related topics

Media Foundation SDK Samples
Media Foundation Transforms
MFT_Grayscale Sample
Writing a Custom MFT

 

 

Show: