Platforms to show: All Mac Windows Linux Cross-Platform

Back to DirectShowAMCrossbarMBS class.

DirectShowAMCrossbarMBS.BaseFilter as DirectShowBaseFilterMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 14.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the base filter for the crossbar.

See also:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd390991(v=vs.85).aspx

DirectShowAMCrossbarMBS.CanRoute(OutputPinIndex as Integer, InputPinIndex as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The CanRoute method queries whether a specified input pin can be routed to a specified output pin.

OutputPinIndex: Specifies the index of the output pin.
InputPinIndex: Specifies the index of input pin.
Lasterror is set.
Returns true if two pins can be routed.

To route the pins, call the Route method. Output pins and input pins are both indexed from zero. To determine the number of output and input pins, call the getPinCounts method.

DirectShowAMCrossbarMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The private constructor.

DirectShowAMCrossbarMBS.GetCrossbarPinInfo(IsInputPin as boolean, PinIndex as Integer, byref PinIndexRelated as Integer, byref PhysicalType as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The getCrossbarPinInfo method retrieves information about a specified pin.

IsInputPin: Specifies the direction of the pin. Use one of the following values.
ValueMeaning
TrueInput pin
FalseOutput pin

PinIndex: Specifies the index of the pin.
PinIndexRelated: Variable that receives the index of the related pin, or –1 if no pin is related to this pin. The related pin is a pin on the same filter, with the same direction; it typically represents the same physical jack or connector. For example, a video tuner and an audio tuner might be related pins. Typically, if two pins are related, you should route them together.
PhysicalType: Variable that receives a member of the PhysicalConnectorType enumeration, indicating the pin's physical type.

Lasterror is set.
Output pins and input pins are both indexed from zero. To determine the number of output and input pins, call the getPinCounts method.

DirectShowAMCrossbarMBS.GetPinCounts(byref OutputPinCount as Integer, byref InputPinCount as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The getPinCounts method retrieves the number of input and output pins on the crossbar filter.

OutputPinCount: Variable that receives the number of output pins.
InputPinCount: Variable that receives the number of input pins.

Lasterror is set.

The other IAMCrossbar methods take parameters that specify pins by index number. For these methods, output pins and input pins are both indexed from zero. Use the getPinCounts method to determine the upper bounds for each.

DirectShowAMCrossbarMBS.IsRoutedTo(InputPinIndex as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The IsRoutedTo method retrieves the input pin that is currently routed to the specified output pin.

OutputPinIndex: Specifies the index of the output pin.
InputPinIndex: Variable that receives the index of the input pin, or -1 if no input pin is routed to this output pin.

Output pins and input pins are both indexed from zero. To determine the number of output and input pins, call the getPinCounts method.
Lasterror is set.

DirectShowAMCrossbarMBS.Route(OutputPinIndex as Integer, InputPinIndex as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The Route method routes an input pin to an output pin.

OutputPinIndex: Specifies the index of the output pin.
InputPinIndex: Specifies the index of the input pin.

Lasterror is set.

Routing two pins causes the output pin to deliver data from that input pin. Only one input pin at a time can be routed to a given output pin.
Output pins and input pins are both indexed from zero. To determine the number of output and input pins, call the getPinCounts method.

DirectShowAMCrossbarMBS.ShowPropertyDialog(parent as DesktopWindow, x as integer = 0, y as integer = 0, title as string = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 22.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Shows property dialog.

Parent: the parent window for the dialog.
X/Y: The offset of the dialog relative to the parent window.
Title: optional title for the dialog.

Sets lasterror property.

See also:

DirectShowAMCrossbarMBS.ShowPropertyDialog(parent as window = nil, x as integer = 0, y as integer = 0, title as string = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 19.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Shows property dialog.
Example
dim Capture as DirectShowCaptureGraphBuilderMBS // your capture graph
dim srcfilter as DirectShowBaseFilterMBS // your source filter

Dim AMCrossbar As DirectShowAMCrossbarMBS = srcfilter.AMCrossbar
If AMCrossbar <> Nil Then
AMCrossbar.ShowPropertyDialog
MsgBox "Result: "+Str(AMCrossbar.Lasterror)+": "+AMCrossbar.LasterrorMessage
Else
MsgBox "No AMCrossbar."
End If

Parent: the parent window for the dialog.
X/Y: The offset of the dialog relative to the parent window.
Title: optional title for the dialog.

Sets lasterror property.

See also:

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...