使用场景
举例
类
CWASAPICapture *capturer = new (std::nothrow) CWASAPICapture(device, isDefaultDevice, role);
if (capturer == NULL)
{
printf("Unable to allocate capturer\n");
return -1;
}
buffer
BYTE *captureBuffer = new (std::nothrow) BYTE[captureBufferSize];
if (captureBuffer == NULL)
{
printf("Unable to allocate capture buffer\n");
return -1;
}