Microsoft DirectX 8.1 (Visual Basic) |
The CreateStandardAudioPath method creates an object that represents the stages in data flow from the performance to DirectSound buffers. This method can be used instead of DirectMusicPerformance8.CreateAudioPath to create a basic predefined audiopath rather than one defined in a source file.
object.CreateStandardAudioPath( _
lType As CONST_DMUSIC_STANDARD_AUDIO_PATH, _
lPChannelCount As Long, _
fActive As Boolean _
) As DirectMusicAudioPath8
Parts
object
Resolves to a DirectMusicPerformance8 object.
lType
Type of the path, specified by one of the constants of the CONST_DMUSIC_STANDARD_AUDIO_PATH enumeration. For more information on these audiopath types, see Standard Audiopaths.
lPChannelCount
Value that specifies the number of
fActive
Boolean value that specifies whether to activate the path on creation.
Return Values
Returns a DirectMusicAudioPath8 object.
Error Codes
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the following error values:
DMUS_E_NOT_INIT |
DMUS_E_AUDIOPATHS_NOT_VALID |
DMUS_E_INVALIDARG |
DMUS_E_OUTOFMEMORY |