IltmmTVTuner::AutoTune Example for C++
IltmmTVTuner* pTuner;
HRESULT hr = m_capture->get_TVTuner (&pTuner);
if(SUCCEEDED(hr) && pTuner != NULL)
{
long channel, channelmin, channelmax;
hr = pTuner->get_ChannelMin (&channelmin);
if(SUCCEEDED(hr))
hr = pTuner->get_ChannelMax (&channelmax);
if(SUCCEEDED(hr))
hr = pTuner->get_Channel (&channel);
if(SUCCEEDED(hr))
{
for(channel = channelmin; channel <= channelmax; channel++)
{
long found = 0;
pTuner->AutoTune (channel, &found);
if(found)
MessageBox("Found");
}
pTuner->StoreAutoTune ();
}
pTuner->Release();
}