Microsoft DirectX 8.1 (Visual Basic)

CONST_DVCLIENTCONFIGENUM

Used in the lFlags member of the DVCLIENTCONFIG type to control voice transmission behavior.

Enum CONST_DVCLIENTCONFIGENUM
    DVCLIENTCONFIG_AUTORECORDVOLUME = 8
    DVCLIENTCONFIG_AUTOVOICEACTIVATED = 32 (&H20)
    DVCLIENTCONFIG_ECHOSUPPRESSION = 134217728 (&H8000000)
    DVCLIENTCONFIG_MANUALVOICEACTIVATED = 4
    DVCLIENTCONFIG_MUTEGLOBAL = 16 (&H10)
    DVCLIENTCONFIG_PLAYBACKMUTE = 2
    DVCLIENTCONFIG_RECORDMUTE = 1
End Enum

Constants

DVCLIENTCONFIG_AUTORECORDVOLUME
Activate automatic gain control. With automatic gain control, Microsoft® DirectPlay® Voice adjusts the hardware input volume on your sound card automatically to get the best input level possible. You can determine the current input volume by looking at the lRecordVolume member after a call to DirectPlayVoiceClient8.GetClientConfig.
DVCLIENTCONFIG_AUTOVOICEACTIVATED
Place the transmission control system into automatic voice activation mode. In this mode, the sensitivity of voice activation is determined automatically by the system. The input level is adaptive, adjusting itself automatically to the input signal. For most applications this should be the setting used. This flag and the DVCLIENTCONFIG_MANUALVOICEACTIVATED flag are mutually exclusive.
DVCLIENTCONFIG_ECHOSUPPRESSION
Activate the echo suppression mode. This mode reduces echo introduced by configurations with external speakers and extremely sensitive microphones. While remote player's voices are being played back on the local speaker, the microphone is automatically muted. If the local player is transmitting, then the playback of remote player voices is buffered until local input stops. After local input stops, playback resumes.
DVCLIENTCONFIG_MANUALVOICEACTIVATED
Place the transmission control system into manual voice activation mode. In this mode, transmission of voice begins when the input level passes the level specified by the lThreshold member of the DVCLIENTCONFIG type. When input levels drop below the specified level, transmission stops. This flag is mutually exclusive with the DVCLIENTCONFIG_AUTOVOICEACTIVATED flag.
DVCLIENTCONFIG_MUTEGLOBAL
Mute playback of the main sound buffer. Only sound buffers created through calls to DirectPlayVoiceClient8.Create3DSoundBuffer will be heard.
DVCLIENTCONFIG_PLAYBACKMUTE
Mute the playback of all DirectPlay Voice output and stop playback. This also stops decompression of incoming packets so CPU usage is reduced. Packets are effectively discarded while this flag is specified.
DVCLIENTCONFIG_RECORDMUTE
Mute the input from the microphone and stop recording. This also stops compression so CPU usage is reduced.

In addition to the preceding flags, the method of transmission is controlled by setting only one of the following flags or by not specifying either flag.

If you do not specify either DVCLIENTCONFIG_MANUALVOICEACTIVATED or DVCLIENTCONFIG_AUTOVOICEACTIVATED, the system will operate in push-to-talk mode. In push-to-talk mode, as long as there is a valid target specified the input from the microphone will be transmitted. Voice transmission stops when a NULL target is set or the current target leaves the session or is destroyed.