IltmmCapture::get_AudioCaptureFormats Example for C++

IltmmAudioFormats *pAudioFormats;
Long lCount;

pCapture->get_AudioCaptureFormats(&pAudioFormats);
// get the count
pAudioFormats->get_Count(&lCount)

// select the first format
If( lCount > 0 )
{
   // select the first audio format
   pAudioFormats->put_Selection(0);
}

// release when done
pAudioFormats->Release();