Microsoft DirectX 8.0 (Visual Basic)

DirectMusicPerformance8.SetDefaultAudioPath

Sets and activates the default audiopath for the performance.

object.SetDefaultAudioPath( _
  AudioPath As DirectMusicAudioPath8)

Parts

object
Resolves to a DirectMusicPerformance8 object.
AudioPath
DirectMusicAudioPath8 object that specifies the default audiopath.

Error Codes

If the method fails, an error is raised. Possible values for Err.Number include the following:

DMUS_E_INVALIDARG
DMUS_E_AUDIOPATHS_NOT_VALID
DMUS_E_NOT_INIT