Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Multimedia API Help

IltmmAudioInputs::get_Bass Example for C

Show in webframe

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); 
   }
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.