GVCaptureMode

GameSpy SDK

GVCaptureMode

enums used with gvSetCaptureMode() and gvGetCaptureMode().

typedef enum 
{
GVCaptureModeThreshold,    
GVCaptureModePushToTalk    
} GVCaptureMode;

Constants

GVCaptureModeThreshold
mode captures speech based on the current threshold value.
GVCaptureModePushToTalk
mode captures speech when gvSetPushToTalk is turned on.

Remarks

The default mode for the SDK is GVCaptureModeThreshold. In GVCaptureModeThreshold , a capture device is on and captures speech based on the current threshold value. When you change to GVCaptureModePushToTalk, the SDK will save the current Threshold value, set the threshold value to 0, and stop the capture device. This mode also allows use of the following functions: gvSetPushToTalk(), gvGetPushToTalk(). When you switch the captureMode to GVCaptureModeThreshold, the saved Threshold value will be restored and the capture device will be started. If the device is not a capture device, gvSetCaptureMode() will assert.

Section Reference: Gamespy Voice SDK

See Also: gvSetCaptureMode, gvGetCaptureMode