IltmmCapture::IsPreviewTapSupported Example for C
VARIANT_BOOL vrtSupported;
IltmmCapture_IsPreviewTapSupported(m_capture, ltmmCapture_Preview_Audio, ltmmCapture_PreviewTap_Source, &vrtSupported);
if (vrtSupported == VARIANT_TRUE)
{
VARIANT_BOOL vrtMute;
long lVol, lBalance;
IltmmCapture__get_Mute(m_capture, &vrtMute);
if (vrtMute == VARIANT_TRUE)
IltmmCapture__put_Mute(m_capture, VARIANT_FALSE);
IltmmCapture__get_Volume(m_capture, &lVol);
if (lVol == 0)
lVol = -10000;
else
lVol = 0;
IltmmCapture__put_Volume(m_capture, lVol);
IltmmCapture__get_Balance(m_capture, &lBalance);
if (lBalance != 0)
IltmmCapture__put_Balance(m_capture, 0);
}