Microsoft DirectX 8.1 (Visual Basic)

DirectMusicPerformance8.CreateAudioPath

The CreateAudioPath method creates an audiopath object that represents the stages in data flow from the performance to DirectSound buffers.

object.CreateAudioPath( _
  SourceConfig As Unknown _
) As DirectMusicAudioPath8

Parts

object

Resolves to a DirectMusicPerformance8 object.

SourceConfig

Object that represents the audiopath configuration. This object is typically obtained from a segment by using the DirectMusicSegment8.GetAudioPathConfig method.

Return Values

Returns a DirectMusicAudioPath8 object.

Error Codes

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

DMUS_E_NOT_INIT
DMUS_E_AUDIOPATHS_NOT_VALID
DMUS_E_OUTOFMEMORY