PlayMotif Sample

Description

This sample application shows how motifs can be played over a primary segment.

Path

Source: (SDK root)\Samples\Multimedia\Dmusic\Src\PlayMotf

Executable: (SDK root)\Samples\Multimedia\DMusic\Bin

User's Guide

Click the buttons to play the various secondary segments (motifs) on top of the main playing primary segment. Click Close to exit the application.

Programming Notes

The program uses the registry key set up by the DirectX SDK setup to find the media file path.

Helper.cpp contains useful functions that set up DirectMusic. These functions are called from Main.cpp.