質問

Would someone just show me an example of how this createfilter method in directshow should work?

I see that a string is passed as a parameter but I don't understand what that string exactly is. I only understand the GUID part of it.

役に立ちましたか?

解決

There is no CreateFilter method and even identifier in latest DirectShow.NET 2.1.

There are CreateFilter methods in a couple of sample projects and they do the action explained in comment right there.

/// <summary>
/// Enumerates all filters of the selected category and returns the IBaseFilter for the 
/// filter described in friendlyname
/// </summary>
/// <param name="category">Category of the filter</param>
/// <param name="friendlyname">Friendly name of the filter</param>
/// <returns>IBaseFilter for the device</returns>
private IBaseFilter CreateFilter(Guid category, string friendlyname)
{
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top