Microsoft DirectX 8.1 (Visual Basic) |
Connects the client to a Microsoft® DirectPlay® Voice session.
Connect( _ SoundDeviceConfig As DVSOUNDDEVICECONFIG, _ ClientConfig As DVCLIENTCONFIG, _ lFlags As Long)
If the method fails, Err.Number can be set to one of the following values.
You must test the sound devices selected for playback and capture by invoking the Setup Wizard before connecting the client to the DirectPlay Voice session. On application startup, check the audio configuration by using DirectPlayVoiceTest8.CheckAudioSetup. If this method returns DVERR_RUNSETUP, the sound configuration specified has not been tested. The Setup Wizard needs to be run only once for any configuration.
Any calls to DirectPlayVoiceClient8.Connect while a connection is pending return DVERR_ALREADYPENDING. Additionally, only one connection can be pending at a time.
A transport session must be started on the specified DirectPlay object before calling this method. A successful call to DirectPlayVoiceClient8.Initialize must be made before calling the Connect method.