gvSetCodec
Sets the codec to be used by the SDK.
- GVBool gvSetCodec(
- GVCodec codec );
Routine | Required Header | Distribution |
---|---|---|
gvSetCodec | <gv.h> | SDKZIP |
Return Value
Returns GVTrue if successful; otherwise, GVFalse.
Parameters
- codec
- [in] The codec identifier.
Remarks
The first thing to do after initializing the SDK is to set the codec you would like to use. The codec cannot be changed while any devices are initialized, so an application will typically just set the codec once, when it starts using voice.
The codec must be one of the following values:
GVCodecSuperHighQuality
GVCodecHighQuality
GVCodecAverage
GVCodecLowBandwidth
GVCodecSuperLowBandwidth.
Section Reference: Gamespy Voice SDK
See Also: gvGetCodecInfo, gvSetCustomCodec