Using Mute with ltmfCapture Example for C++

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); 
} 
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Media Foundation C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.