gvSetCaptureMode

GameSpy SDK

gvSetCaptureMode

Sets the capture mode for the device.

void gvSetCaptureMode(
GVDevice device,
GVCaptureMode captureMode );
RoutineRequired HeaderDistribution
gvSetCaptureMode<gv.h>SDKZIP

Parameters

device
[in] The handle to the capture device.
captureMode
[in] The new capture mode.

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: gvGetCaptureMode, GVCaptureMode