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