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(); } }