CBaseFilter::GetPin
Microsoft DirectShow 9.0 |
CBaseFilter::GetPin
The GetPin method retrieves a pin. The CEnumPins class calls this method to enumerate pins on the filter.
Syntax
virtual CBasePin *GetPin( int n ) PURE;
Parameters
n
Number of the specified pin.
Return Value
Returns a pointer to the CBasePin object that implements the pin.
Remarks
You must implement this pure virtual method in your derived class. Return a pointer to the nth pin on this filter, indexed from zero. You can choose an arbitrary indexing order, as long as the ordering is fixed. If the filter adds or deletes pins, or the ordering changes for some other reason at run time, call the CBaseFilter::IncrementPinVersion method.
Requirements
** Header:** Declared in Amfilter.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also