gvNewDevice

GameSpy SDK

gvNewDevice

Initializes a device.

GVDevice gvNewDevice(
GVDeviceID deviceID,
GVDeviceType type );
RoutineRequired HeaderDistribution
gvNewDevice<gv.h>SDKZIP

Return Value

If the device was successfully initialized, a handle to the device will be returned. If there was an error setting up the device, NULL will be returned.

Parameters

deviceID
[in] The ID for the device to be initialized
type
[in] Specifies whether device handles capture or playback or both

Remarks

A device that supports both capture and playback may be initialized for just one or the other or both.

Section Reference: Gamespy Voice SDK

See Also: gvFreeDevice, gvNewCustomDevice