Shows how to implement a custom media sink in Microsoft Media Foundation. The sample implements an archive sink that writes uncompressed PCM audio to a .wav file.
This sample demonstrates the following Media Foundation interfaces:
The WavSink sample contains two Visual Studio projects:
- WavSink.vcproj builds a static library that contains the media sink implementation.
- WriteWavFile.vcproj builds a console application that uses the media sink to produce a .wav file. This application links to the library created by the WavSink project.
|Windows SDK||Windows Vista|
|Microsoft Windows||Windows Vista|
This sample is available in the following locations.
|Windows SDK||SDK Root\Samples\multimedia\mediafoundation\wavsink|
|MSDN Code Gallery||Download from MSDN Code Gallery|