IltmmCapture::IsPreviewTapSupported Example for C++
VARIANT_BOOL vrtSupported;
m_capture->IsPreviewTapSupported (ltmmCapture_Preview_Audio, ltmmCapture_PreviewTap_Source, &vrtSupported);
if (vrtSupported == VARIANT_TRUE)
{
VARIANT_BOOL vrtMute;
long lVol, lBalance;
m_capture->get_Mute (&vrtMute);
if (vrtMute == VARIANT_TRUE)
m_capture->put_Mute (VARIANT_FALSE);
m_capture->get_Volume (&lVol);
if (lVol == 0)
lVol = -10000;
else
lVol = 0;
m_capture->put_Volume (lVol);
m_capture->get_Balance (&lBalance);
if (lBalance != 0)
m_capture->put_Balance (0);
}