Microsoft DirectX 8.1 (Visual Basic)

DirectX8.DirectSoundCreate

Creates a DirectSound8 object.

object.DirectSoundCreate( _
    guid As String _
) As DirectSound8

Parts

object
Object expression that resolves to a DirectX8 object.
guid
A GUID string that identifies the sound capture device. The value of this parameter must be one of the GUIDs returned by DirectSoundEnum8.GetGuid, vbNullString for the default device, or one of the following values:
DSDEVID_DEFAULTPLAYBACK
System-wide default audio playback device.
DSDEVID_DEFAULTVOICEPLAYBACK
Default voice playback device.

Return Values

Returns a DirectSound8 object.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following Microsoft® DirectSound® error codes: