Microsoft DirectX 8.1 (Visual Basic)

DirectPlayVoiceClient8.SetCurrentSoundDevices

Sets the current Microsoft® DirectSound® capture and playback objects.

SetCurrentSoundDevices( _
    DirectSoundObj As DirectSound8, _
    DirectCaptureObj As DirectSoundCapture8)

Parts

DirectSoundObj
DirectSound8 object to be used for playback.
DirectCaptureObj
DirectSoundCapture8 object to be used for capture.

Error Codes

If the method fails, Err.Number can be set to the following value.

DVERR_INVALIDPARAM