Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
The IMediaObjectImpltemplate is declared in the header with the following syntax.
Copy Code | |
---|---|
template <class _DERIVED_, int NUMBEROFINPUTS, int NUMBEROFOUTPUTS> class IMediaObjectImpl : public IMediaObject |
Parameters
- _DERIVED_
-
Derived class type.
- NUMBEROFINPUTS
-
Number of input streams.
- NUMBEROFOUTPUTS
-
Number of output streams.
Return Values
None.
Remarks
For example, to create a derived class named CMyDmoClass that supports one input stream and one output stream, you would declare it as follows.
Copy Code | |
---|---|
class CMyDmoClass : public IMediaObjectImpl<CMyDmoClass, 1, 1> // 1 input, 1 output |
DMOs cannot dynamically create or destroy streams, so the stream numbers are constant.
Requirements
Header | dmoimpl.h |
Windows Embedded CE | Windows CE .NET 4.1 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |