Declaring the Derived Class (Compact 2013)
3/26/2014
The IMediaObjectImpl template is declared in the header with the following syntax.
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.
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 |
See Also
Reference
Using the DMO Base Class
DirectX Media Objects Reference
DMO Base Class Reference
IMediaObjectImpl Class Template