DirectX SDK

PlayDMusic Sample

[C++]

This topic pertains only to application development in Visual Basic. See DirectMusic C/C++ Samples.

[Visual Basic]

Description

The PlayDMusic sample shows how to load and play authored segments and standard MIDI files.

Path

Source: (SDK root)\Samples\Multimedia\VBSamples\Dmusic\Src\Play

Executable: (SDK root)\Samples\Multimedia\VBSamples\DMusic\Bin\Playdmusic.exe

User's Guide

Load a segment or MIDI file by choosing Open from the File menu or by clicking the open file icon. Play, pause, and stop the segment by using the buttons. Adjust the volume by clicking the arrows.

Choose Show from the Options menu to display the time either in seconds or in music time ticks.

You can connect the band to a different DLS collection, and issue a GMReset command, by selecting those commands from the File menu.

Programming Notes

The program uses a second performance in order to retrieve information about the segment before it is played.