Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tatic KSDATARANGE_MUSIC PinDataRangesStreamLegacy =
- {
- {
- sizeof(KSDATARANGE_MUSIC),
- 0,
- 0,
- 0,
- STATICGUIDOF(KSDATAFORMAT_TYPE_MUSIC),
- STATICGUIDOF(KSDATAFORMAT_SUBTYPE_MIDI),
- STATICGUIDOF(KSDATAFORMAT_SPECIFIER_NONE)
- },
- STATICGUIDOF(KSMUSIC_TECHNOLOGY_PORT),
- 0,
- 0,
- 0xFFFF
- };
- static
- KSDATARANGE PinDataRangesBridge[] =
- {
- {
- sizeof(KSDATARANGE),
- 0,
- 0,
- 0,
- STATICGUIDOF(KSDATAFORMAT_TYPE_MUSIC),
- STATICGUIDOF(KSDATAFORMAT_SUBTYPE_MIDI_BUS),
- STATICGUIDOF(KSDATAFORMAT_SPECIFIER_NONE)
- }
- };
- static PKSDATARANGE PinDataRangePointersStreamLegacy[] =
- {
- PKSDATARANGE(&PinDataRangesStreamLegacy)
- };
- static
- PKSDATARANGE PinDataRangePointersBridge[] =
- {
- &PinDataRangesBridge[0]
- };
- #define kMaxNumCaptureStreams 1
- #define kMaxNumLegacyRenderStreams 1
- #define kMaxNumDMusicRenderStreams 1
- /*****************************************************************************
- * MiniportPins
- *****************************************************************************
- * List of pins.
- */
- static
- PCPIN_DESCRIPTOR MiniportPins[] =
- {
- {
- kMaxNumCaptureStreams,kMaxNumCaptureStreams,0, // InstanceCount
- NULL, // AutomationTable
- { // KsPinDescriptor
- 0, // InterfacesCount
- NULL, // Interfaces
- 0, // MediumsCount
- NULL, // Mediums
- SIZEOF_ARRAY(PinDataRangePointersStreamLegacy), // DataRangesCount
- PinDataRangePointersStreamLegacy, // DataRanges
- KSPIN_DATAFLOW_IN, // DataFlow
- KSPIN_COMMUNICATION_SINK, // Communication
- (GUID *) &KSCATEGORY_AUDIO, // Category
- NULL, // Name
- 0 // Reserved
- }
- },
- {
- 0,0,0, // InstanceCount
- NULL, // AutomationTable
- { // KsPinDescriptor
- 0, // InterfacesCount
- NULL, // Interfaces
- 0, // MediumsCount
- NULL, // Mediums
- SIZEOF_ARRAY(PinDataRangePointersBridge), // DataRangesCount
- PinDataRangePointersBridge, // DataRanges
- KSPIN_DATAFLOW_IN, // DataFlow
- KSPIN_COMMUNICATION_NONE, // Communication
- (GUID *) &KSCATEGORY_AUDIO, // Category
- NULL, // Name
- 0 // Reserved
- }
- },
- {
- kMaxNumCaptureStreams,kMaxNumCaptureStreams,0, // InstanceCount
- NULL, // AutomationTable
- { // KsPinDescriptor
- 0, // InterfacesCount
- NULL, // Interfaces
- 0, // MediumsCount
- NULL, // Mediums
- SIZEOF_ARRAY(PinDataRangePointersStreamLegacy), // DataRangesCount
- PinDataRangePointersStreamLegacy, // DataRanges
- KSPIN_DATAFLOW_OUT, // DataFlow
- KSPIN_COMMUNICATION_SINK, // Communication
- (GUID *) &KSCATEGORY_AUDIO, // Category
- NULL, // Name
- 0 // Reserved
- }
- },
- {
- 0,0,0, // InstanceCount
- NULL, // AutomationTable
- { // KsPinDescriptor
- 0, // InterfacesCount
- NULL, // Interfaces
- 0, // MediumsCount
- NULL, // Mediums
- SIZEOF_ARRAY(PinDataRangePointersBridge), // DataRangesCount
- PinDataRangePointersBridge, // DataRanges
- KSPIN_DATAFLOW_OUT, // DataFlow
- KSPIN_COMMUNICATION_NONE, // Communication
- (GUID *) &KSCATEGORY_AUDIO, // Category
- NULL, // Name
- 0 // Reserved
- }
- },
- };
- /*****************************************************************************
- * MiniportNodes
- *****************************************************************************
- * List of nodes.
- */
- #define CONST_PCNODE_DESCRIPTOR(n) { 0, NULL, &n, NULL }
- #define CONST_PCNODE_DESCRIPTOR_AUTO(n,a) { 0, &a, &n, NULL }
- static
- PCNODE_DESCRIPTOR MiniportNodes[] =
- {
- CONST_PCNODE_DESCRIPTOR(KSNODETYPE_SYNTHESIZER)
- };
- /*****************************************************************************
- * MiniportConnections
- *****************************************************************************
- * List of connections.
- */
- enum {
- InputPin = 0,
- InputPinBridge,
- OutputPin,
- OutputPinBridge,
- };
- static
- PCCONNECTION_DESCRIPTOR MiniportConnections[] =
- {
- { PCFILTER_NODE, InputPin, eSynthNode, KSNODEPIN_STANDARD_IN },
- { eSynthNode, KSNODEPIN_STANDARD_OUT, PCFILTER_NODE, OutputPinBridge }
- };
- /*****************************************************************************
- * MiniportCategories
- *****************************************************************************
- * List of categories.
- */
- static
- GUID MiniportCategories[] =
- {
- STATICGUIDOF(KSCATEGORY_AUDIO),
- STATICGUIDOF(KSCATEGORY_RENDER),
- STATICGUIDOF(KSCATEGORY_CAPTURE)
- };
- /*****************************************************************************
- * MiniportFilterDescriptor
- *****************************************************************************
- * Complete miniport filter description.
- */
- static
- PCFILTER_DESCRIPTOR MiniportFilterDescriptor =
- {
- 0, // Version
- NULL, // AutomationTable
- sizeof(PCPIN_DESCRIPTOR), // PinSize
- SIZEOF_ARRAY(MiniportPins), // PinCount
- MiniportPins, // Pins
- sizeof(PCNODE_DESCRIPTOR), // NodeSize
- SIZEOF_ARRAY(MiniportNodes), // NodeCount
- MiniportNodes, // Nodes
- SIZEOF_ARRAY(MiniportConnections), // ConnectionCount
- MiniportConnections, // Connections
- SIZEOF_ARRAY(MiniportCategories), // CategoryCount
- MiniportCategories // Categories
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement