gvGetAvailableCaptureBytes
Discovers how many bytes are currently available for capture on the given device.
- int gvGetAvailableCaptureBytes(
- GVDevice device );
Routine | Required Header | Distribution |
---|---|---|
gvGetAvailableCaptureBytes | <gv.h> | SDKZIP |
Return Value
Returns the number of bytes available.
Parameters
- device
- [in] The handle to the device.
Remarks
To determine the number of encoded frames, divide the return value by the number of bytes in an encoded frame (which you can get with gvGetCodecInfo).
Note that even if there are bytes available, gvCapturePacket may return GVFalse. This could happen if a capture threshold has been set, and the voice audio does not cross the threshold. In that case GV would skip over that captured audio, and its bytes would no longer count as available bytes.
Section Reference: Gamespy Voice SDK
See Also: gvCapturePacket, gvGetCodecInfo