Microsoft DirectX 8.1 (Visual Basic) |
Recall that in the call to DirectMusicPerformance8.InitAudio, no default audiopath was specified. Instead, the sample creates a standard audiopath on which segments can be played. In a more complex application, multiple audiopaths might be created: one for music and one for 3-D sound effects, for example. This tutorial requires only a single audiopath, of type DMUS_APATH_DYNAMIC_3D. This type of audiopath does not contain any effects such as reverberation, but is adequate for simple sound effects.
Set dmPath = dmp.CreateStandardAudioPath(DMUS_APATH_DYNAMIC_3D, _
64, True)
End Sub ' Form_Load
The audiopath contains support for up to 64 performance channels and is activated on creation.
Next: Step 4: Load a Segment