IltmmAudioInputs::put_Enable Example for C

void IltmmAudioInputs_put_Enable_Example (IltmmAudioInputs* pAudioInputs) 
{ 
   VARIANT_BOOL bEnable; 
 
   // Disable all inputs:  
   IltmmAudioInputs_put_Enable(pAudioInputs, VARIANT_FALSE);  
 
   // Now enable the currently selected input:  
   IltmmAudioInputs_put_Enable (pAudioInputs, VARIANT_FALSE); 
 
   // Check if the currently selected input is enabled:  
   IltmmAudioInputs_get_Enable(pAudioInputs, & bEnable);  
 
   if( bEnable == VARIANT_TRUE )  
   { 
      MessageBox( 0, "Info", "The selected input is enabled", 0);  
   } 
   else  
   { 
      MessageBox( 0, "Info", "All inputs are disabled", 0);  
   } 
} 
Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help