Discovers how many bytes are currently available for capture on the given device.
- int gvGetAvailableCaptureBytes(
- GVDevice device );
Returns the number of bytes available.
- [in] The handle to the device.
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.