gvGetDeviceVolume

GameSpy SDK

gvGetDeviceVolume

Gets the volume from a capture or playback device.

GVScalar gvGetDeviceVolume(
GVDevice device,
GVDeviceType type );
RoutineRequired HeaderDistribution
gvGetDeviceVolume<gv.h>SDKZIP

Return Value

Returns the specified volume for the device.

Parameters

device
[in] The handle to the device.
type
[in] Specifies either the playback volume or the capture volume

Remarks

The volume range is 0.0 to 1.0.

The type parameter controls if this gets set as a capture volume (GV_CAPTURE), a playback volume (GV_PLAYBACK). For a device that supports both capture and playback, this function can only be used to get either the capture volume or the playback volume, not both.

Section Reference: Gamespy Voice SDK

See Also: gvSetDeviceVolume