Microsoft DirectX 8.1 (Visual Basic)

DVSOUNDDEVICECONFIG

Used to set and retrieve information about the sound device configuration and cannot be changed once a connection has been made. After a connection is made, you can retrieve the current sound device configuration by calling DirectPlayVoiceClient8.GetSoundDeviceConfig.

Type DVSOUNDDEVICECONFIG
    guidCaptureDevice As String
    guidPlaybackDevice As String
    hwndAppWindow As Long
    lFlags As CONST_DVSOUNDEFFECT
    lMainBufferFlags As CONST_DSBPLAYFLAGS
    lMainBufferPriority As Long
    MainSoundBuffer As DirectSoundSecondaryBuffer8
End Type

Members

guidCaptureDevice
When this type is used in DirectPlayVoiceClient8.Connect method, this member specifies the GUID of the device used for capture.

When this type is used in the DirectPlayVoiceClient8.GetSoundDeviceConfig method, this member will contain the actual device GUID used for capture.

guidPlaybackDevice
When this type is used in the DirectPlayVoiceClient8.Connect method, this member specifies the GUID of the device used for playback.

When this type is used in the DirectPlayVoiceClient8.GetSoundDeviceConfig method, this member contains the actual device GUID used for playback.

hwndAppWindow
Must be set to the handle of the window that will be used to determine focus for sound playback. See DirectSound8.SetCooperativeLevel for information on Microsoft® DirectSound® focus. If you do not have a window to use for focus, use GetDesktopWindowHandle to use the desktop window.
lFlags
Combination of the flags from the CONST_DVSOUNDEFFECT enumeration.
lMainBufferFlags
Flags values taken from the CONST_DSBPLAYFLAGS enumeration that specify how to play the buffer.
lMainBufferPriority
Passed directly to the dwPriority parameter of the DirectSoundSecondaryBuffer8.Play method when Play is called on the main buffer.
MainSoundBuffer
DirectSoundSecondaryBuffer8 object, which is used to create the Microsoft DirectPlay® Voice main buffer. This parameter can be either NULL or a user-created DirectSound buffer. If this member is set to NULL, DirectPlay Voice will create a buffer for the main voice buffer. If users specify a buffer here, DirectPlay Voice will use their buffer for the main voice buffer.