void GetCaptureVideoWindowHandle(IltmmCapture *pCapture)
{
VARIANT_BOOL vrtSupported;
HRESULT hr = pCapture->IsPreviewTapSupported(ltmmCapture_Preview_Audio, ltmmCapture_PreviewTap_Source, &vrtSupported);
if (SUCCEEDED(hr) && vrtSupported == VARIANT_TRUE)
{
VARIANT_BOOL vrtMute;
long lVol, lBalance;
// unmute it if currently muted
pCapture->get_Mute(&vrtMute);
if (vrtMute == VARIANT_TRUE)
pCapture->put_Mute(VARIANT_FALSE);
// adjust the volume
pCapture->get_Volume(&lVol);
if (lVol == 0)
pCapture->put_Volume(-10000);
// adjust the balance
pCapture->get_Balance(&lBalance);
if (lBalance != 0)
pCapture->put_Balance(0);
}
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET