IltmmAudioInputs::get_Bass Example for C++

void GetAudioBass(IltmmCapture *pCapture) 
{ 
   IltmmAudioInputs *pAudioInputs = NULL; 
   HRESULT hr = pCapture->get_AudioInputs(&pAudioInputs); 
   if (SUCCEEDED(hr) && pAudioInputs) 
   { 
      VARIANT_BOOL vrtMono, vrtLoudness; 
      double dTrebleRange, dBassRange, dMixLevel, dPan, dTreble, dBass; 
      pAudioInputs->put_Mono(VARIANT_FALSE); 
      pAudioInputs->put_MixLevel(1.0); 
      pAudioInputs->put_Pan(0.0); 
      pAudioInputs->put_Loudness(VARIANT_TRUE); 
      pAudioInputs->get_TrebleRange(&dTrebleRange); 
      pAudioInputs->put_Treble(dTrebleRange / 2.0); 
      pAudioInputs->get_BassRange(&dBassRange); 
      pAudioInputs->put_Bass(dBassRange / 2.0); 
      pAudioInputs->get_Mono(&vrtMono); 
      pAudioInputs->get_MixLevel(&dMixLevel); 
      pAudioInputs->get_Pan(&dPan); 
      pAudioInputs->get_Loudness(&vrtLoudness); 
      pAudioInputs->get_Treble(&dTreble); 
      pAudioInputs->get_Bass(&dBass); 
      pAudioInputs->Release(); 
   } 
} 
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.