Microsoft DirectX 8.1 (Visual Basic) |
Starts an initialized Microsoft® DirectPlay® Voice session within a running DirectPlay transport session. This method must be successfully called before the clients can complete a connection to the voice session.
StartSession(SessionDesc As DVSESSIONDESC, lFlags As Long)
If the method fails, Err.Number can be set to one of the following values.
DVERR_INVALIDPARAM |
DVERR_ALREADYPENDING |
DVERR_NOTINITIALIZED |
DVERR_INVALIDOBJECT |
DVERR_INVALIDPOINTER |
DVERR_INVALIDFLAGS |
DVERR_HOSTING |
The DirectPlayVoiceServer8.Initialize method must be called before this method is called. The voice session can be hosted on any client in the session if the voice session is peer-to-peer. If the voice session is not peer-to-peer, it must be hosted on the transport client, which is the host of an active transport session.
The DVSESSIONDESC structure contains the type of voice session to start. The type of voice session can have a dramatic effect on the CPU and bandwidth usage for both the client and the server.