IltmmAudioInputs::get_Bass Example for C

void IltmmAudioInputs_get_Bass_Example (IltmmCapture* pCapture) 
{ 
   IltmmAudioInputs *pAudioInputs = NULL;  
  
   HRESULT hr = IltmmCapture_get_AudioInputs(pCapture, &pAudioInputs);  
 
   if (SUCCEEDED(hr) && pAudioInputs)  
   { 
      VARIANT_BOOL vrtMono, vrtLoudness;  
      double dTrebleRange, dBassRange, dMixLevel, dPan, dTreble, dBass;  
 
      IltmmAudioInputs_put_Mono(pAudioInputs, VARIANT_FALSE);  
      IltmmAudioInputs_put_MixLevel(pAudioInputs, 1.0);  
      IltmmAudioInputs_put_Pan(pAudioInputs, 0.0);  
      IltmmAudioInputs_put_Loudness(pAudioInputs, VARIANT_TRUE);  
 
      IltmmAudioInputs_get_TrebleRange(pAudioInputs, &dTrebleRange);  
      IltmmAudioInputs_put_Treble(pAudioInputs, dTrebleRange / 2.0);  
 
      IltmmAudioInputs_get_BassRange(pAudioInputs, &dBassRange);  
      IltmmAudioInputs_put_Bass(pAudioInputs, dBassRange / 2.0);  
 
      IltmmAudioInputs_get_Mono(pAudioInputs, &vrtMono);  
      IltmmAudioInputs_get_MixLevel(pAudioInputs, &dMixLevel);  
      IltmmAudioInputs_get_Pan(pAudioInputs, &dPan);  
      IltmmAudioInputs_get_Loudness(pAudioInputs, &vrtLoudness);  
      IltmmAudioInputs_get_Treble(pAudioInputs, &dTreble);  
      IltmmAudioInputs_get_Bass(pAudioInputs, &dBass);  
 
      IltmmAudioInputs_Release(pAudioInputs);  
   } 
} 
Help Version 22.0.2023.1.26
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

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