Platform SDK: DirectX |
This topic pertains only to application development in Visual Basic. See DirectMusic C/C++ Samples.
The PlayDMusic sample shows how to load and play authored segments and standard MIDI files.
Source: (SDK root)\Samples\Multimedia\VBSamples\Dmusic\Src\Play
Executable: (SDK root)\Samples\Multimedia\VBSamples\DMusic\Bin\Playdmusic.exe
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.
The program uses a second performance in order to retrieve information about the segment before it is played.