DirectShowと戦うスレ Part 3
■ このスレッドは過去ログ倉庫に格納されています
0005デフォルトの名無しさん
2008/03/21(金) 11:30:57//AVIとかMPEG1とかVFWでいけるやつ
//オーディオトラックを再生しない場合 NO_AUDIO_RENDERER を定義
if(!bSound)
{
// If no audio component is desired, directly connect the two video pins
// instead of allowing the Filter Graph Manager to render all pins.
CComPtr<IPin> pFTRPinIn; // Texture Renderer Input Pin
// Find the source's output pin and the renderer's input pin
if (FAILED(hr = pCTR->FindPin(L"In", &pFTRPinIn)))
{
Msg(TEXT("Could not find input pin! hr=0x%x"), hr);
return hr;
}
// Connect these two filters
if (FAILED(hr = m_pGB->Connect(pFSrcPinOut, pFTRPinIn)))
{
Msg(TEXT("Could not connect pins! hr=0x%x"), hr);
return hr;
}
}
■ このスレッドは過去ログ倉庫に格納されています