Microsoft DirectX 9.0

BGMusic Sample


The BGMusic sample is a playback application that cycles through a set of audio files.

This sample shows how to swap source filters in a filter graph. When the application begins, it renders the first audio file in the sequence and sets a timer. Whenever the timer goes off, the application removes the source filter and replaces it with a source filter for the next file. The files are all of the same type, so there is no need to rebuild the entire graph.


Source: (SDK root)Samples\C++\DirectShow\Players\BGMusic

Executable: (SDK root)\Samples\C++\DirectShow\Bin\BGMusic.exe