Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.11.27
LEADTOOLS Media Foundation Help

Using Mute with ltmfCapture Example for C++

Show in webframe
void SetCaptureVolumeMuteBalance(IltmfCapture *pCapture)
{
      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);
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.